@@ -32,8 +32,8 @@ discard block |
||
| 32 | 32 | */ |
| 33 | 33 | interface TypeEquality |
| 34 | 34 | { |
| 35 | - const IGNORE_OBJECT_TYPE = 0b0001; |
|
| 36 | - const IGNORE_OBJECT_IDENTITY = 0b0010; |
|
| 35 | + const IGNORE_OBJECT_TYPE=0b0001; |
|
| 36 | + const IGNORE_OBJECT_IDENTITY=0b0010; |
|
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * Compare two {@link Type} objects |
@@ -49,5 +49,5 @@ discard block |
||
| 49 | 49 | * @return bool - Returns true if objects are equal |
| 50 | 50 | * @throws InvalidArgumentException - Thrown if objects cannot be compared |
| 51 | 51 | */ |
| 52 | - public function equals(Type $object, int $flags = self::IGNORE_OBJECT_IDENTITY): bool; |
|
| 52 | + public function equals(Type $object, int $flags=self::IGNORE_OBJECT_IDENTITY): bool; |
|
| 53 | 53 | } |
@@ -23,5 +23,5 @@ |
||
| 23 | 23 | /** |
| 24 | 24 | * @var string |
| 25 | 25 | */ |
| 26 | - protected $message = 'Cannot change property of immutable object'; |
|
| 26 | + protected $message='Cannot change property of immutable object'; |
|
| 27 | 27 | } |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | * @return bool - Returns true if types are equal |
| 41 | 41 | * @throws RuntimeException - if $this is not an instance of {@link Type} |
| 42 | 42 | */ |
| 43 | - final private function isSameTypeAs(Type $type, int $flags = null): bool |
|
| 43 | + final private function isSameTypeAs(Type $type, int $flags=null): bool |
|
| 44 | 44 | { |
| 45 | 45 | if ($flags & TypeEquality::IGNORE_OBJECT_TYPE) { |
| 46 | 46 | return true; // Ignore this check and just return true |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | * @param int|null $flags - optional flags enable or disable certain checks |
| 70 | 70 | * @return bool - Returns true if identities are equal |
| 71 | 71 | */ |
| 72 | - final private function isSameObjectAs(Type $type, int $flags = null): bool |
|
| 72 | + final private function isSameObjectAs(Type $type, int $flags=null): bool |
|
| 73 | 73 | { |
| 74 | 74 | if ($flags & TypeEquality::IGNORE_OBJECT_IDENTITY) { |
| 75 | 75 | return true; |