@@ -28,9 +28,9 @@ |
||
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 allow any undefined or inaccessible properties to be read from.\n\n" |
|
33 | - . 'You tried to access a property called "propertyName".' . "\n\n" |
|
31 | + $expected = 'The given object '.get_class($object) |
|
32 | + . '#'.spl_object_hash($object)." is not designed to allow any undefined or inaccessible properties to be read from.\n\n" |
|
33 | + . 'You tried to access a property called "propertyName".'."\n\n" |
|
34 | 34 | . 'Perhaps you made a typo in the property name, or tried to access an inaccessible property?'; |
35 | 35 | |
36 | 36 | self::assertSame($expected, $exception->getMessage()); |
@@ -29,9 +29,9 @@ |
||
29 | 29 | self::assertInstanceOf(LogicException::class, $exception); |
30 | 30 | self::assertInstanceOf(ExceptionInterface::class, $exception); |
31 | 31 | |
32 | - $expected = 'The given object ' . get_class($object) |
|
33 | - . '#' . spl_object_hash($object) . " is not designed to allow any undefined or inaccessible methods to be called.\n\n" |
|
34 | - . 'You tried to call a method called "methodName".' . "\n\n" |
|
32 | + $expected = 'The given object '.get_class($object) |
|
33 | + . '#'.spl_object_hash($object)." is not designed to allow any undefined or inaccessible methods to be called.\n\n" |
|
34 | + . 'You tried to call a method called "methodName".'."\n\n" |
|
35 | 35 | . 'Perhaps you made a typo in the method name, or tried to call an inaccessible method?'; |
36 | 36 | |
37 | 37 | self::assertSame($expected, $exception->getMessage()); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | public static function fromAttemptedCall($object, string $method) : self |
24 | 24 | { |
25 | - if (! is_object($object)) { |
|
25 | + if (!is_object($object)) { |
|
26 | 26 | throw TypeError::fromNonObject($object); |
27 | 27 | } |
28 | 28 |
@@ -26,9 +26,9 @@ |
||
26 | 26 | self::assertInstanceOf(LogicException::class, $exception); |
27 | 27 | self::assertInstanceOf(ExceptionInterface::class, $exception); |
28 | 28 | |
29 | - $expected = 'The given class ' . $class |
|
29 | + $expected = 'The given class '.$class |
|
30 | 30 | . " is not designed to allow any undefined or inaccessible static methods to be called.\n\n" |
31 | - . 'You tried to call a static method called "methodName".' . "\n\n" |
|
31 | + . 'You tried to call a static method called "methodName".'."\n\n" |
|
32 | 32 | . 'Perhaps you made a typo in the method name, or tried to call an inaccessible method?'; |
33 | 33 | |
34 | 34 | self::assertSame($expected, $exception->getMessage()); |
@@ -24,7 +24,7 @@ |
||
24 | 24 | public function testWillThrowOnSerialisationAttempt($className) : void |
25 | 25 | { |
26 | 26 | $this->expectException(NonDeserialisableObject::class); |
27 | - if($className === NonDeserialisableImplementingSerializable::class){ |
|
27 | + if ($className === NonDeserialisableImplementingSerializable::class) { |
|
28 | 28 | unserialize(\sprintf('C:55:"DontTestAsset\NonDeserialisableImplementingSerializable":6:{a:0:{}}')); |
29 | 29 | } else { |
30 | 30 | unserialize(\sprintf('O:%d:"%s":0:{}', \strlen($className), $className)); |