diff --git a/src/DI/Managers/DefinitionManager.php b/src/DI/Managers/DefinitionManager.php index 17f3553..a3bf77d 100644 --- a/src/DI/Managers/DefinitionManager.php +++ b/src/DI/Managers/DefinitionManager.php @@ -41,7 +41,6 @@ public function __construct( * * @param array $definitions The array of definitions. * - * @return $this * @throws ContainerException */ public function addDefinitions(array $definitions): self @@ -66,7 +65,6 @@ public function addDefinitions(array $definitions): self * @param LifetimeEnum $lifetime The lifetime of the definition. * @param array $tags An array of tags to associate with the definition. * - * @return $this * @throws ContainerException if the container is locked or if the id is the same as the definition. */ public function bind( @@ -96,7 +94,6 @@ public function bind( * * @param bool $forceClearFirst Whether to clear the cache before caching all definitions. * - * @return $this * @throws ContainerException|InvalidArgumentException * @throws ReflectionException */ @@ -132,7 +129,6 @@ public function cacheAllDefinitions(bool $forceClearFirst = false): self * * The given adapter can be any PHP-FIG PSR-6 pool implementation. * - * @return $this * @throws ContainerException */ public function enableDefinitionCache( diff --git a/src/DI/Managers/OptionsManager.php b/src/DI/Managers/OptionsManager.php index 66ca3c9..ecce1c2 100644 --- a/src/DI/Managers/OptionsManager.php +++ b/src/DI/Managers/OptionsManager.php @@ -45,7 +45,6 @@ public function __construct( * @param string $interface the interface to bind * @param string $concrete the concrete implementation to bind to * - * @return $this * @throws ContainerException if the container is locked */ public function bindInterfaceForEnv(string $env, string $interface, string $concrete): self @@ -80,8 +79,6 @@ public function definitions(): DefinitionManager * * @param bool $enable Whether to enable debug tracing. Defaults to true. * @param TraceLevelEnum $level The trace level to use. Defaults to `TraceLevelEnum::Node`. - * - * @return $this */ public function enableDebugTracing(bool $enable = true, TraceLevelEnum $level = TraceLevelEnum::Node): self { @@ -100,7 +97,6 @@ public function enableDebugTracing(bool $enable = true, TraceLevelEnum $level = * * @param bool $lazy Whether to enable lazy loading. Defaults to true. * - * @return $this * @throws ContainerException */ public function enableLazyLoading(bool $lazy = true): self @@ -119,7 +115,6 @@ public function enableLazyLoading(bool $lazy = true): self * * @param string $path The path to the preload file. * - * @return $this * @throws \ReflectionException */ public function generatePreload(string $path): self @@ -150,7 +145,6 @@ public function invocation(): InvocationManager * @param string $attributeFqcn The fully qualified class name of the attribute. * @param string $resolverFqcn The fully qualified class name of the resolver. * - * @return $this * @throws ContainerException */ public function registerAttributeResolver( @@ -211,7 +205,6 @@ public function setDefinitionMetaForEnv( * used for environment-specific configurations or bindings. * * @param string $env The name of the environment to set. - * @return $this * @throws ContainerException */ public function setEnvironment(string $env): self @@ -232,7 +225,6 @@ public function setEnvironment(string $env): self * @param bool $propertyAttributes Whether to enable property attributes. Defaults to false. * @param string|null $defaultMethod The default method to call if none is specified. Defaults to null. * - * @return $this * @throws ContainerException */ public function setOptions( diff --git a/src/DI/Managers/RegistrationManager.php b/src/DI/Managers/RegistrationManager.php index 76c912e..2935190 100644 --- a/src/DI/Managers/RegistrationManager.php +++ b/src/DI/Managers/RegistrationManager.php @@ -108,7 +108,6 @@ public function options(): OptionsManager * @param string $class The name of the class to register. * @param array $parameters An array of parameters to be passed to the class constructor. * - * @return $this * @throws ContainerException */ public function registerClass(string $class, array $parameters = []): self @@ -128,7 +127,6 @@ public function registerClass(string $class, array $parameters = []): self * @param callable|Closure $function The closure to be registered. * @param array $parameters Any parameters to be passed to the closure. * - * @return $this * @throws ContainerException */ public function registerClosure( @@ -152,7 +150,6 @@ public function registerClosure( * @param string $method The name of the method to register. * @param array $parameters An array of parameters to be passed to the method. * - * @return $this * @throws ContainerException */ public function registerMethod( @@ -178,7 +175,6 @@ public function registerMethod( * @param string $class The name of the class whose property is being registered. * @param array $property An array of property names as keys and their associated values as values. * - * @return $this * @throws ContainerException */ public function registerProperty(string $class, array $property): self diff --git a/src/Remix/ConditionalProxy.php b/src/Remix/ConditionalProxy.php index cc3c35c..8131bb0 100644 --- a/src/Remix/ConditionalProxy.php +++ b/src/Remix/ConditionalProxy.php @@ -86,8 +86,6 @@ public function __unset(string $key): void /** * Set the condition on the proxy. - * - * @return $this */ public function condition(bool $condition): static { @@ -99,8 +97,6 @@ public function condition(bool $condition): static /** * Invert the next condition captured from the target. - * - * @return $this */ public function negateConditionOnCapture(): static {