@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | public function implements(string $interface): ClassEnsurance |
112 | 112 | { |
113 | 113 | $this->enforce(array_key_exists($interface, class_implements($this->class, true))) |
114 | - ->orThrow('"%s" does not implements interface "%s"', $this->class, $interface); |
|
114 | + ->orThrow('"%s" does not implements interface "%s"', $this->class, $interface); |
|
115 | 115 | |
116 | 116 | return $this; |
117 | 117 | } |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | public function implementsNot(string $interface): ClassEnsurance |
125 | 125 | { |
126 | 126 | $this->enforce(!array_key_exists($interface, class_implements($this->class, true))) |
127 | - ->orThrow('"%s" does implements interface "%s"', $this->class, $interface); |
|
127 | + ->orThrow('"%s" does implements interface "%s"', $this->class, $interface); |
|
128 | 128 | |
129 | 129 | return $this; |
130 | 130 | } |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | public function isParentOf(string $class): ClassEnsurance |
138 | 138 | { |
139 | 139 | $this->enforce(array_key_exists($this->class, class_parents($class, true))) |
140 | - ->orThrow('"%s" is not a parent of "%s"', $this->class, $class); |
|
140 | + ->orThrow('"%s" is not a parent of "%s"', $this->class, $class); |
|
141 | 141 | |
142 | 142 | return $this; |
143 | 143 | } |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | public function isNotParentOf(string $class): ClassEnsurance |
151 | 151 | { |
152 | 152 | $this->enforce(!array_key_exists($this->class, class_parents($class, true))) |
153 | - ->orThrow('"%s" is a parent of "%s"', $this->class, $class); |
|
153 | + ->orThrow('"%s" is a parent of "%s"', $this->class, $class); |
|
154 | 154 | |
155 | 155 | return $this; |
156 | 156 | } |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | public function uses(string $trait): ClassEnsurance |
164 | 164 | { |
165 | 165 | $this->enforce(array_key_exists($trait, class_uses($this->class, true))) |
166 | - ->orThrow('"%s" does not use trait "%s"', $this->class, $trait); |
|
166 | + ->orThrow('"%s" does not use trait "%s"', $this->class, $trait); |
|
167 | 167 | |
168 | 168 | return $this; |
169 | 169 | } |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | public function hasProperty(string $property): ClassEnsurance |
177 | 177 | { |
178 | 178 | $this->enforce($this->reflection->hasProperty($property)) |
179 | - ->orThrow('"%s" does not have a property "%s"', $this->class, $property); |
|
179 | + ->orThrow('"%s" does not have a property "%s"', $this->class, $property); |
|
180 | 180 | |
181 | 181 | return $this; |
182 | 182 | } |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | public function hasMethod(string $method): ClassEnsurance |
190 | 190 | { |
191 | 191 | $this->enforce($this->reflection->hasMethod($method)) |
192 | - ->orThrow('"%s" does not have a method "%s"', $this->class, $method); |
|
192 | + ->orThrow('"%s" does not have a method "%s"', $this->class, $method); |
|
193 | 193 | |
194 | 194 | return $this; |
195 | 195 | } |