|
@@ -90,11 +90,11 @@ |
|
|
block discarded – undo |
|
90
|
90
|
*/ |
|
91
|
91
|
private static function assertValidFactory(string $factoryInterface, string $factoryImplementation): void |
|
92
|
92
|
{ |
|
93
|
|
- if (! isset(self::$candidates[$factoryInterface])) { |
|
|
93
|
+ if (!isset(self::$candidates[$factoryInterface])) { |
|
94
|
94
|
throw new InvalidArgumentException("$factoryInterface is not a supported factory"); |
|
95
|
95
|
} |
|
96
|
96
|
|
|
97
|
|
- if (! is_subclass_of($factoryImplementation, $factoryInterface, true)) { |
|
|
97
|
+ if (!is_subclass_of($factoryImplementation, $factoryInterface, true)) { |
|
98
|
98
|
throw new InvalidArgumentException("$factoryImplementation does not implement $factoryInterface"); |
|
99
|
99
|
} |
|
100
|
100
|
} |
Please login to merge, or discard this patch.