Skip to content

Commit 33d28a0

Browse files
committed
FIX: udpated phpunit and fixed a use typo
1 parent 06ef025 commit 33d28a0

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

generator/composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@
1515
"symfony/finder": "^4.1"
1616
},
1717
"require-dev": {
18-
"phpunit/phpunit": "^9.0",
18+
"phpunit/phpunit": "^9.5",
1919
"thecodingmachine/phpstan-strict-rules": "^1.0",
2020
"squizlabs/php_codesniffer": "^3.2",
2121
"php-coveralls/php-coveralls": "^2.1",
2222
"phpstan/phpstan": "^1.5"
2323
},
2424
"scripts": {
25+
"test": "vendor/bin/phpunit",
2526
"phpstan": "phpstan analyse src -c phpstan.neon --level=max --no-progress -vvv",
2627
"cs-fix": "phpcbf",
2728
"cs-check": "phpcs"

generator/composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generator/config/CustomPhpStanFunctionMap.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,7 @@
2626
'curl_share_errno' => ['int', 'share_handle' => 'CurlShareHandle'],
2727
'curl_share_setopt' => ['void', 'share_handle' => 'CurlShareHandle', 'option' => 'int', 'value' => 'mixed'],
2828
'curl_unescape' => ['string', 'handle' => 'CurlHandle', 'string' => 'string'],
29+
30+
//todo: edit the reader to turn 0|1 into int
31+
'preg_match' => ['int|false', 'pattern'=>'string', 'subject'=>'string', '&w_subpatterns='=>'string[]', 'flags='=>'int', 'offset='=>'int'], //int|false instead of 0|1|false
2932
];

generator/tests/PhpStanFunctions/PhpStanFunctionMapReaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Safe\PhpStanFunctions;
44

5-
use PHPStan\Testing\TestCase;
5+
use PHPUnit\Framework\TestCase;
66

77
class PhpStanFunctionMapReaderTest extends TestCase
88
{

generator/tests/PhpStanFunctions/PhpStanTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace Safe\PhpStanFunctions;
55

66

7-
use PHPStan\Testing\TestCase;
7+
use PHPUnit\Framework\TestCase;
88
use Safe\Method;
99

1010
class PhpStanTypeTest extends TestCase

0 commit comments

Comments
 (0)