From b1e57ed20a0ead56fab0cb840a7d1f1865a941d4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Kucha=C5=99?= <honza.kuchar@grifart.cz>
Date: Wed, 30 Mar 2022 21:18:44 +0200
Subject: [PATCH] rename `use NotSerializable` -> `use NoSerialization`

---
 README.md                                        | 4 ++--
 src/{NotSerializable.php => NoSerialization.php} | 2 +-
 tests/basicTest.php                              | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
 rename src/{NotSerializable.php => NoSerialization.php} (96%)

diff --git a/README.md b/README.md
index 228e957..0912557 100644
--- a/README.md
+++ b/README.md
@@ -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;
 }
 ```
 
diff --git a/src/NotSerializable.php b/src/NoSerialization.php
similarity index 96%
rename from src/NotSerializable.php
rename to src/NoSerialization.php
index ffed69d..d1a79df 100644
--- a/src/NotSerializable.php
+++ b/src/NoSerialization.php
@@ -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
 {
 
 	/**
diff --git a/tests/basicTest.php b/tests/basicTest.php
index 53cdff4..c3247d5 100644
--- a/tests/basicTest.php
+++ b/tests/basicTest.php
@@ -4,7 +4,7 @@ require __DIR__ . '/../vendor/autoload.php';
 
 
 class SomeClass {
-	use \Grifart\NotSerializable\NotSerializable;
+	use \Grifart\NotSerializable\NoSerialization;
 }
 
 \Tester\Assert::exception(
-- 
GitLab