@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | public function implements (string $interface): ClassEnsurance |
| 91 | 91 | { |
| 92 | 92 | $this->enforce(array_key_exists($interface, class_implements($this->class))) |
| 93 | - ->orThrow('"%s" does not implements interface "%s"', $this->class, $interface); |
|
| 93 | + ->orThrow('"%s" does not implements interface "%s"', $this->class, $interface); |
|
| 94 | 94 | |
| 95 | 95 | return $this; |
| 96 | 96 | } |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | public function implementsNot(string $interface): ClassEnsurance |
| 104 | 104 | { |
| 105 | 105 | $this->enforce(!array_key_exists($interface, class_implements($this->class))) |
| 106 | - ->orThrow('"%s" does implements interface "%s"', $this->class, $interface); |
|
| 106 | + ->orThrow('"%s" does implements interface "%s"', $this->class, $interface); |
|
| 107 | 107 | |
| 108 | 108 | return $this; |
| 109 | 109 | } |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | public function isParentOf(string $class): ClassEnsurance |
| 117 | 117 | { |
| 118 | 118 | $this->enforce(array_key_exists($this->class, class_parents($class, true))) |
| 119 | - ->orThrow('"%s" is not a parent of "%s"', $this->class, $class); |
|
| 119 | + ->orThrow('"%s" is not a parent of "%s"', $this->class, $class); |
|
| 120 | 120 | |
| 121 | 121 | return $this; |
| 122 | 122 | } |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | public function isNotParentOf(string $class): ClassEnsurance |
| 130 | 130 | { |
| 131 | 131 | $this->enforce(!array_key_exists($this->class, class_parents($class, true))) |
| 132 | - ->orThrow('"%s" is a parent of "%s"', $this->class, $class); |
|
| 132 | + ->orThrow('"%s" is a parent of "%s"', $this->class, $class); |
|
| 133 | 133 | |
| 134 | 134 | return $this; |
| 135 | 135 | } |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | public function uses(string $trait): ClassEnsurance |
| 143 | 143 | { |
| 144 | 144 | $this->enforce(array_key_exists($trait, class_uses($this->class))) |
| 145 | - ->orThrow('"%s" does not use trait "%s"', $this->class, $trait); |
|
| 145 | + ->orThrow('"%s" does not use trait "%s"', $this->class, $trait); |
|
| 146 | 146 | |
| 147 | 147 | return $this; |
| 148 | 148 | } |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | public function hasProperty(string $property): ClassEnsurance |
| 156 | 156 | { |
| 157 | 157 | $this->enforce(property_exists($this->class, $property)) |
| 158 | - ->orThrow('"%s" does not have a property "%s"', $this->class, $property); |
|
| 158 | + ->orThrow('"%s" does not have a property "%s"', $this->class, $property); |
|
| 159 | 159 | |
| 160 | 160 | return $this; |
| 161 | 161 | } |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | public function hasMethod(string $method): ClassEnsurance |
| 169 | 169 | { |
| 170 | 170 | $this->enforce(method_exists($this->class, $method)) |
| 171 | - ->orThrow('"%s" does not have a method "%s"', $this->class, $method); |
|
| 171 | + ->orThrow('"%s" does not have a method "%s"', $this->class, $method); |
|
| 172 | 172 | |
| 173 | 173 | return $this; |
| 174 | 174 | } |