@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Dont; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Dont; |
6 | 6 |
@@ -28,15 +28,15 @@ |
||
28 | 28 | self::assertInstanceOf(LogicException::class, $exception); |
29 | 29 | self::assertInstanceOf(ExceptionInterface::class, $exception); |
30 | 30 | |
31 | - $expected = 'The given object ' . get_class($object) |
|
32 | - . '#' . spl_object_hash($object) . ' is not designed to be deserialized, ' |
|
31 | + $expected = 'The given object '.get_class($object) |
|
32 | + . '#'.spl_object_hash($object).' is not designed to be deserialized, ' |
|
33 | 33 | . "yet deserialization was attempted using\n" |
34 | 34 | . " the `unserialize` funtion." |
35 | 35 | . "\n\n" |
36 | - . 'This error is raised because the author of ' . get_class($object) |
|
36 | + . 'This error is raised because the author of '.get_class($object) |
|
37 | 37 | . " didn't design it to be deserialized, nor can guarantee \n" |
38 | 38 | . "that all its internal components are deserializable. \n\n" |
39 | - . 'Please do not use unserialize() to produce ' . get_class($object) . ' instances.'; |
|
39 | + . 'Please do not use unserialize() to produce '.get_class($object).' instances.'; |
|
40 | 40 | |
41 | 41 | self::assertSame($expected, $exception->getMessage()); |
42 | 42 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Dont\Exception; |
6 | 6 | |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | */ |
18 | 18 | public static function fromAttemptedSerialisation($object) : self |
19 | 19 | { |
20 | - if (! is_object($object)) { |
|
20 | + if (!is_object($object)) { |
|
21 | 21 | throw TypeError::fromNonObject($object); |
22 | 22 | } |
23 | 23 |