Skip to content

Commit f4ce2af

Browse files
Bump phpstorm stubs (#5861)
1 parent 5e6b44b commit f4ce2af

6 files changed

Lines changed: 18 additions & 8 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"hoa/compiler": "3.17.08.08",
2727
"hoa/exception": "^1.0",
2828
"hoa/file": "1.17.07.11",
29-
"jetbrains/phpstorm-stubs": "dev-master#87940f228f9c3e6446e40d6cc3668f249fe871a5",
29+
"jetbrains/phpstorm-stubs": "dev-master#709e512210784a7c0a677b3a89d35def844a59b9",
3030
"nette/bootstrap": "^3.0",
3131
"nette/di": "^3.1.4",
3232
"nette/neon": "3.3.4",

composer.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

patches/dom_c.patch

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,12 @@
1515
/**
1616
* Retrieves a node specified by name
1717
* @link https://php.net/manual/en/domnamednodemap.getnameditem.php
18+
@@ -1779,7 +1787,7 @@
19+
* A <classname>DOMNamedNodeMap</classname> containing the attributes of this node (if it is a <classname>DOMElement</classname>) or NULL otherwise.
20+
* @link https://php.net/manual/en/class.domnode.php#domnode.props.attributes
21+
*/
22+
- #[LanguageLevelTypeAware(['8.1' => 'DOMNamedNodeMap|null'], default: '')]
23+
+ #[LanguageLevelTypeAware(['8.1' => 'DOMNamedNodeMap'], default: '')]
24+
public $attributes;
25+
26+
/**

resources/constantToFunctionParameterMap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1735,7 +1735,7 @@
17351735
],
17361736

17371737
'DOMDocument::schemaValidate' => [
1738-
'options' => [
1738+
'flags' => [
17391739
'type' => 'bitmask',
17401740
'constants' => $libxmlOptions,
17411741
],

tests/PHPStan/Rules/Methods/OverridingMethodRuleTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ public function testBug3443(): void
334334
$this->analyse([__DIR__ . '/data/bug-3443.php'], []);
335335
}
336336

337+
#[RequiresPhp('>= 8.0.0')]
337338
public function testBug3478(): void
338339
{
339340
$this->phpVersionId = PHP_VERSION_ID;

tests/PHPStan/Rules/Methods/data/overriding-variadics.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function translate($message, $lang = 'cs'): string
6161
class ReflectionClass extends \ReflectionClass
6262
{
6363

64-
public function newInstance($arg = null, ...$args)
64+
public function newInstance($arg = null, ...$args): object
6565
{
6666

6767
}

0 commit comments

Comments
 (0)