Skip to content
Snippets Groups Projects
Verified Commit b1e57ed2 authored by Jan Kuchař's avatar Jan Kuchař
Browse files

rename `use NotSerializable` -> `use NoSerialization`

parent e81ae2b3
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ class UserId {
- $this->id = $id
+ $this->identifier = $id
}
}
}
```
There is no public change of behaviour. There is no way outer observer should be able to find any changes in object behaviour. Static analysis passes, tests passes. All good! You deploy your application.
......@@ -62,7 +62,7 @@ Open you PhpStorm settings and then `Editor > File and Code Templates > Files >
```php
final class ${NAME} {
use \Grifart\NotSerializable\NotSerializable;
use \Grifart\NotSerializable\NoSerialization;
}
```
......
......@@ -8,7 +8,7 @@ namespace Grifart\NotSerializable;
* Use this trait to state that class is NOT meant to be serializable.
* API docs: https://php.watch/versions/8.1/serializable-deprecated
*/
trait NotSerializable
trait NoSerialization
{
/**
......
......@@ -4,7 +4,7 @@ require __DIR__ . '/../vendor/autoload.php';
class SomeClass {
use \Grifart\NotSerializable\NotSerializable;
use \Grifart\NotSerializable\NoSerialization;
}
\Tester\Assert::exception(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment