Skip to content

Commit

Permalink
fix: static analyis/phpcs warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen-G committed Sep 28, 2024
1 parent ed6284b commit 1b6ef3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Tempest/Container/src/AutoDiscovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
use Tempest\Core\HandlesDiscoveryCache;
use Tempest\Reflection\ClassReflector;

/**
* @property GenericContainer $container
*/
final class AutoDiscovery implements Discovery
{
use HandlesDiscoveryCache;
Expand All @@ -21,7 +24,7 @@ public function discover(ClassReflector $class): void
{
$autowire = $class->getAttribute(Autowire::class);

if (! $autowire) {
if ($autowire === null) {
return;
}

Expand Down
2 changes: 2 additions & 0 deletions src/Tempest/Container/src/GenericContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ public function __construct(
public function setDefinitions(array $definitions): self
{
$this->definitions = new ArrayIterator($definitions);

return $this;
}

public function setInitializers(array $initializers): self
Expand Down

0 comments on commit 1b6ef3a

Please sign in to comment.