Skip to content

Commit

Permalink
Fixed linter
Browse files Browse the repository at this point in the history
  • Loading branch information
CrochetFeve0251 committed Aug 9, 2024
1 parent 73bdc3b commit 05f4640
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions inc/Container/Definition.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,20 @@
use League\Container\Argument\ClassNameInterface;
use League\Container\Argument\LiteralArgumentInterface;
use League\Container\Argument\RawArgumentInterface;
use League\Container\Exception\ContainerException;
use Psr\Container\ContainerInterface;

class Definition extends \League\Container\Definition\Definition {

/**
* {@inheritdoc}
* Resolve class.
*
* @param bool $new Force new class.
*
* @return mixed|object|string
*/
public function resolve( bool $new = false ) {
public function resolve( bool $new = false ) { // phpcs:ignore Squiz.Commenting.FunctionComment.MissingParamTag,Universal.NamingConventions.NoReservedKeywordParameterNames.newFound
$concrete = $this->concrete;

if ( $this->isShared() && $this->resolved !== null && $new === false ) {
if ( $this->isShared() && ( null !== $this->resolved ) && false === $new ) {
return $this->resolved;
}

Expand Down

0 comments on commit 05f4640

Please sign in to comment.