phpstan / phpstan-webmozart-assert

PHPStan extension for webmozart/assert
160 stars 27 forks source link

Revert non-empty-array specification for Assert::uniqueValues #178

Closed herndlm closed 3 months ago

herndlm commented 3 months ago

Reverts https://github.com/phpstan/phpstan-webmozart-assert/pull/177

See https://github.com/phpstan/phpstan-webmozart-assert/pull/177#issuecomment-2027775826 (thx @VincentLanglet !)

Also

➜  phpstan-webmozart-assert git:(1.2.x) cat test.php 
<?php declare(strict_types = 1);

require_once __DIR__ . '/vendor/autoload.php';

\Webmozart\Assert\Assert::uniqueValues([]);
echo "still here";
➜  phpstan-webmozart-assert git:(1.2.x) ✗ php test.php 
still here%  

sorry for missing that

ondrejmirtes commented 3 months ago

Thank you.