Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<ruleset name="PHP_CodeSniffer">
<description>PHP_CodeSniffer configuration</description>
<arg name="extensions" value="php"/>
<file>./src</file>
<rule ref="PSR12"> </rule>
</ruleset>
4 changes: 2 additions & 2 deletions src/DI/Invoker/InjectedCall.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function resolveByDefinition(string $name): mixed
* @param string|null $method The method to resolve.
* @param bool $make Whether to create a new instance of the class if it exists.
* @return array The resolved class.
* @throws ContainerException|ReflectionException
* @throws ContainerException|ReflectionException|InvalidArgumentException
*/
public function classSettler(string|object $class, string $method = null, bool $make = false): array
{
Expand All @@ -75,7 +75,7 @@ public function classSettler(string|object $class, string $method = null, bool $
* @param string|Closure $closure The closure to be executed.
* @param array $params The parameters to be passed to the closure.
* @return mixed The result of executing the closure.
* @throws ReflectionException|ContainerException If there is an error resolving the parameters.
* @throws ReflectionException|ContainerException|InvalidArgumentException
*/
public function closureSettler(string|Closure $closure, array $params = []): mixed
{
Expand Down