Skip to content

Commit

Permalink
Merge pull request #463 from agustingomes/zend-assert-issue
Browse files Browse the repository at this point in the history
Expose and fix incorrect assertion
  • Loading branch information
lcobucci authored Feb 22, 2022
2 parents 824e6b6 + 5803030 commit f260e88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ vendor/composer/installed.json: composer.json composer.lock

.PHONY: phpunit
phpunit:
@vendor/bin/phpunit
@php -dzend.assertions=1 vendor/bin/phpunit

.PHONY: infection
infection:
Expand Down
2 changes: 1 addition & 1 deletion src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private function loadContainer(ContainerConfiguration $config, ConfigCache $dump
{
require_once $dump->getPath();
$className = $config->getClassName();
assert(is_a($className, ContainerInterface::class));
assert(is_a($className, ContainerInterface::class, true));

return new $className();
}
Expand Down

0 comments on commit f260e88

Please sign in to comment.