@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | public function implements (string $interface): ClassEnsurance |
| 65 | 65 | { |
| 66 | 66 | $this->enforce(array_key_exists($interface, class_implements($this->class))) |
| 67 | - ->orThrow('"%s" does not implements interface "%s"', $this->class, $interface); |
|
| 67 | + ->orThrow('"%s" does not implements interface "%s"', $this->class, $interface); |
|
| 68 | 68 | |
| 69 | 69 | return $this; |
| 70 | 70 | } |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | public function isParentOf(string $class): ClassEnsurance |
| 78 | 78 | { |
| 79 | 79 | $this->enforce(array_key_exists($this->class, class_parents($class, true))) |
| 80 | - ->orThrow('"%s" is not a parent of "%s"', $this->class, $class); |
|
| 80 | + ->orThrow('"%s" is not a parent of "%s"', $this->class, $class); |
|
| 81 | 81 | |
| 82 | 82 | return $this; |
| 83 | 83 | } |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | public function uses(string $trait): ClassEnsurance |
| 91 | 91 | { |
| 92 | 92 | $this->enforce(array_key_exists($trait, class_uses($this->class))) |
| 93 | - ->orThrow('"%s" does not use trait "%s"', $this->class, $trait); |
|
| 93 | + ->orThrow('"%s" does not use trait "%s"', $this->class, $trait); |
|
| 94 | 94 | |
| 95 | 95 | return $this; |
| 96 | 96 | } |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | public function hasProperty(string $property): ClassEnsurance |
| 104 | 104 | { |
| 105 | 105 | $this->enforce(property_exists($this->class, $property)) |
| 106 | - ->orThrow('"%s" does not have a property "%s"', $this->class, $property); |
|
| 106 | + ->orThrow('"%s" does not have a property "%s"', $this->class, $property); |
|
| 107 | 107 | |
| 108 | 108 | return $this; |
| 109 | 109 | } |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | public function hasMethod(string $method): ClassEnsurance |
| 117 | 117 | { |
| 118 | 118 | $this->enforce(method_exists($this->class, $method)) |
| 119 | - ->orThrow('"%s" does not have a method "%s"', $this->class, $method); |
|
| 119 | + ->orThrow('"%s" does not have a method "%s"', $this->class, $method); |
|
| 120 | 120 | |
| 121 | 121 | return $this; |
| 122 | 122 | } |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | public function isBetween(float $lhs, float $rhs): NumericEnsurance |
| 174 | 174 | { |
| 175 | 175 | $this->enforce($lhs <= $this->number && $rhs >= $this->number) |
| 176 | - ->orThrow('"%s" is not between "%s" and "%s"', $this->number, $lhs, $rhs); |
|
| 176 | + ->orThrow('"%s" is not between "%s" and "%s"', $this->number, $lhs, $rhs); |
|
| 177 | 177 | |
| 178 | 178 | return $this; |
| 179 | 179 | } |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | public function isNotBetween(float $lhs, float $rhs): NumericEnsurance |
| 188 | 188 | { |
| 189 | 189 | $this->enforce($lhs > $this->number || $rhs < $this->number) |
| 190 | - ->orThrow('"%s" is between "%s" and "%s"', $this->number, $lhs, $rhs); |
|
| 190 | + ->orThrow('"%s" is between "%s" and "%s"', $this->number, $lhs, $rhs); |
|
| 191 | 191 | |
| 192 | 192 | return $this; |
| 193 | 193 | } |