← All changes
|
includes/Dependencies/DI/Definition/Source/SourceCache.php
+1
-1
4.5.0
→
4.9.2
View file →
| @@ -63,9 +63,9 @@ | ||
| 63 | 63 | { |
| 64 | 64 | throw new \LogicException('You cannot set a definition at runtime on a container that has caching enabled. Doing so would risk caching the definition for the next execution, where it might be different. You can either put your definitions in a file, remove the cache or ->set() a raw value directly (PHP object, string, int, ...) instead of a PHP-WPDeveloper\BetterDocs\Dependencies\DI definition.'); |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - private function shouldBeCached(Definition $definition = null) : bool | |
| 67 | + private function shouldBeCached(?Definition $definition = null) : bool | |
| 68 | 68 | { |
| 69 | 69 | return |
| 70 | 70 | // Cache missing definitions |
| 71 | 71 | ($definition === null) |