Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Oct 6, 2024
1 parent ee1e003 commit dca0e16
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions resources/functionMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -6403,8 +6403,8 @@
'mcrypt_module_open' => ['resource|false', 'cipher'=>'string', 'cipher_directory'=>'string', 'mode'=>'string', 'mode_directory'=>'string'],
'mcrypt_module_self_test' => ['bool', 'algorithm'=>'string', 'lib_dir='=>'string'],
'mcrypt_ofb' => ['string', 'cipher'=>'string', 'key'=>'string', 'data'=>'string', 'mode'=>'int', 'iv='=>'string'],
'md5' => ['(non-falsy-string&numeric-string)|(non-falsy-string&lowercase-string)', 'str'=>'string', 'raw_output='=>'bool'],
'md5_file' => ['(non-falsy-string&numeric-string)|(non-falsy-string&lowercase-string)|false', 'filename'=>'string', 'raw_output='=>'bool'],
'md5' => ['(non-falsy-string&lowercase-string)', 'str'=>'string', 'raw_output='=>'bool'],
'md5_file' => ['(non-falsy-string&lowercase-string)|false', 'filename'=>'string', 'raw_output='=>'bool'],
'mdecrypt_generic' => ['string', 'td'=>'resource', 'data'=>'string'],
'Memcache::add' => ['bool', 'key'=>'string', 'var'=>'mixed', 'flag='=>'int', 'expire='=>'int'],
'Memcache::addServer' => ['bool', 'host'=>'string', 'port='=>'int', 'persistent='=>'bool', 'weight='=>'int', 'timeout='=>'int', 'retry_interval='=>'int', 'status='=>'bool', 'failure_callback='=>'callable', 'timeoutms='=>'int'],
Expand Down Expand Up @@ -10446,8 +10446,8 @@
'setRightFill' => ['void', 'red'=>'int', 'green'=>'int', 'blue'=>'int', 'a='=>'int'],
'setthreadtitle' => ['bool', 'title'=>'string'],
'settype' => ['bool', '&rw_var'=>'mixed', 'type'=>'string'],
'sha1' => ['(non-falsy-string&numeric-string)|(non-falsy-string&lowercase-string)', 'str'=>'string', 'raw_output='=>'bool'],
'sha1_file' => ['(non-falsy-string&numeric-string)|(non-falsy-string&lowercase-string)|false', 'filename'=>'string', 'raw_output='=>'bool'],
'sha1' => ['(non-falsy-string&lowercase-string)', 'str'=>'string', 'raw_output='=>'bool'],
'sha1_file' => ['(non-falsy-string&lowercase-string)|false', 'filename'=>'string', 'raw_output='=>'bool'],
'sha256' => ['string', 'str'=>'string', 'raw_output='=>'bool'],
'sha256_file' => ['string', 'filename'=>'string', 'raw_output='=>'bool'],
'shapefileObj::__construct' => ['void', 'filename'=>'string', 'type'=>'int'],
Expand Down
2 changes: 1 addition & 1 deletion src/Testing/PHPStanTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ abstract class PHPStanTestCase extends TestCase
/** @deprecated */
public static bool $useStaticReflectionProvider = true;

/** @var array<int|string, Container> */
/** @var array<string, Container> */
private static array $containers = [];

/** @api */
Expand Down
2 changes: 1 addition & 1 deletion src/Testing/TestCaseSourceLocatorFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
final class TestCaseSourceLocatorFactory
{

/** @var array<int|string, list<SourceLocator>> */
/** @var array<string, list<SourceLocator>> */
private static array $composerSourceLocatorsCache = [];

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1126,11 +1126,11 @@ public function testHashing(): void
$this->checkAlwaysTrueStrictComparison = true;
$this->analyse([__DIR__ . '/data/hashing.php'], [
[
"Strict comparison using === between (lowercase-string&non-falsy-string)|(non-falsy-string&numeric-string) and 'ABC' will always evaluate to false.",
"Strict comparison using === between lowercase-string&non-falsy-string and 'ABC' will always evaluate to false.",
9,
],
[
"Strict comparison using === between (lowercase-string&non-falsy-string)|(non-falsy-string&numeric-string)|false and 'ABC' will always evaluate to false.",
"Strict comparison using === between (lowercase-string&non-falsy-string)|false and 'ABC' will always evaluate to false.",
12,
],
[
Expand Down

0 comments on commit dca0e16

Please sign in to comment.