Nico Oelgart
b0e6812884
Fix DOMNodeList::item() return type
...
Adjusted return type as per the official documentation:
https://www.php.net/manual/en/domnodelist.item.php
2024-04-01 19:45:10 +02:00
Ivan Fedorov
1720f96770
[phpstorm-stubs] Fix return type of DOMNode::__sleep and DOMNode::__wakeup
2023-10-30 19:39:14 +01:00
Ivan Fedorov
ccdaadeec0
[phpstorm-stubs] Update DOM stubs for serialization
...
https://github.com/php/php-src/issues/8996
2023-10-30 18:41:37 +01:00
LolGleb
f94b4fb19f
[phpstorm-stubs] Fixed testMethodsDefaultParametersValue and added default values for parameters that missed it.
2023-09-14 10:01:56 +02:00
Ivan Fedorov
beac237645
[phpstorm-stubs] remove redundant typehints and PHPDocs
2023-08-28 20:24:58 +02:00
Ivan Fedorov
24c80bebff
[phpstorm-stubs] update for PHP 8.3
2023-08-28 14:41:18 +02:00
John Paul E. Balandan, CPA
c9fda7c716
Parameter and return of `DOMNode::lookupNamespaceURI` are both nullable
2023-08-17 15:19:23 +02:00
Niels Dossche
d4212d6519
Mark compareDocumentPosition as removed since 8.0
...
This was never implemented in PHP, and got removed as a consequence in
PHP 8.0. This might be introduced later, but for now the stubs shouldn't
contain a method that isn't there.
2023-08-17 11:29:49 +02:00
Alessandro Lai
b3489cf824
DOMElement::$attributes is not nullable
2023-02-09 20:40:56 +01:00
Dmitry.Tronin
371c522a47
fixed readonly DOMNodeList::length
2022-07-12 20:19:28 +02:00
Dmitry.Tronin
7d92cdbab3
Fixed getIterator return PHPDoc
2022-07-12 20:19:28 +02:00
Ivan Fedorov
8191142e5a
[phpstorm-stubs] update stubs according to php 5.6
2022-07-12 17:35:50 +02:00
Ivan Fedorov
96c26c803a
[phpstorm-stubs] add int ranges
2022-04-11 10:45:14 +02:00
Vasek Purchart
690203c46d
fix DOMNode & DOMElement property types
2022-03-31 11:48:08 +02:00
Christian Sciberras
90461cd8f8
Language injection for common function args
2022-03-16 17:51:53 +01:00
Ivan Fedorov
0fe2c0c634
[phpstorm-stubs] replace deprecated cs-fixer rule with a modern one
2022-02-23 17:45:11 +01:00
Ivan Fedorov
363c7059fc
[phpstorm-stubs] fixes after review
2021-12-06 17:24:42 +01:00
Ivan Fedorov
857ab5d195
[phpstorm-stubs] cleanup
2021-12-06 17:24:42 +01:00
Ivan Fedorov
9a52eba08b
[phpstorm-stubs] update stubs according to php 7.0
2021-12-06 17:24:42 +01:00
Ivan Fedorov
d21b6679e2
[phpstorm-stubs] fix final modifier for classes
2021-10-13 09:58:12 +02:00
Ivan Fedorov
27d6f9e08e
Tentative return types ( #1234 )
...
[phpstorm-stubs] add tentative return type hints
2021-09-23 16:17:05 +02:00
Ivan Fedorov
eb07bc6549
update to php 8.1 rc 1
2021-09-07 17:16:18 +02:00
Ivan Fedorov
cd4edd87aa
update stubs to latest php 8.0 and 8.1
2021-08-27 10:01:58 +02:00
Ivan Fedorov
d9f5e07ecd
cleanup
2021-08-14 20:08:16 +02:00
Ivan Fedorov
521820d426
remove duplicated method
2021-08-14 20:08:16 +02:00
Ivan Fedorov
642b05233c
fix imports after rebase
2021-08-14 20:08:16 +02:00
Ivan Fedorov
00909ff789
convert Optional attribute to Required
2021-08-14 20:08:16 +02:00
Ivan Fedorov
d507ff5af8
Add internal Optional attribute and mark related parameters
2021-08-14 20:08:16 +02:00
Ivan Fedorov
ed5b861e62
update stubs to suite different php versions
2021-08-14 20:08:16 +02:00
Anton
c3fe319df1
Update dom_c.php
2021-08-09 17:20:33 +02:00
Ivan Fedorov
fc05cca170
rollback Required attribute and use PhpStormStubsElementAvailable instead
2021-07-28 13:42:43 +02:00
Ivan Fedorov
b7ce36242d
convert Optional attribute to Required
2021-07-28 13:42:43 +02:00
Ivan Fedorov
0786c37695
Add internal Optional attribute and mark related parameters
2021-07-28 13:42:43 +02:00
Ivan Fedorov
f2df719dcc
add typehints for DOM
2021-07-28 13:42:43 +02:00
Ivan Fedorov
e1c0e6e3a4
convert nullable to union types in attributes
2021-07-28 13:42:43 +02:00
Ivan Fedorov
9a29812c1b
update stubs to suite different php versions
2021-07-28 13:42:43 +02:00
Anton
c8c676d14e
Update dom_c.php
2021-07-28 12:03:32 +02:00
Anton
2d113af746
Update dom_c.php
2021-07-28 12:03:32 +02:00
Anton
7eade4c71e
Update dom_c.php
...
~~~
DOMException: Invalid Character Error in ...\sandbox\index.php(69)
Stack trace:
#0 ...\sandbox\index.php(69): DOMAttr->__construct('foo bar')
~~~
2021-07-28 12:03:32 +02:00
Ivan Fedorov
835466f1d5
change nullable types to union types in attributes
2021-06-30 21:41:05 +03:00
Ivan Fedorov
2cd87268ec
Update stubs to php 8.1 alpha2
2021-06-29 18:34:13 +03:00
Ivan Fedorov
d067f1b72f
batch update of all stubs with defined code style
2021-03-17 17:45:32 +03:00
Ivan Fedorov
39476b4f91
update to php 8.0.3
2021-03-06 19:59:21 +03:00
Ivan Fedorov
53277234b3
update stubs to php 8.0.2
2021-02-12 16:22:23 +03:00
Ivan Fedorov
ced393334f
add test to check method parameters default values
2021-02-02 21:13:33 +03:00
Ivan Fedorov
fbe33d7723
update stubs according to reflection
2020-12-18 14:05:02 +01:00
Lars Moelleken
5a6651d1cc
fix "&Alias;" usage
...
+ revert some changes
2020-12-14 12:15:52 +03:00
Lars Moelleken
ad901bf4c0
improve some more phpdocs
...
dom_import_simplexml -> fix types
-> https://3v4l.org/67Al2
2020-12-14 12:15:52 +03:00
Lars Moelleken
9f6bfb660b
more phpdoc fixes
...
fix tests: "PHP Fatal error: Uncaught PhpParser\Error: Variadic parameter cannot have a default value on line 767"
fix tests: "Type mismatch array_key_exists: $array"
fix tests: "parameter 'withComments' with typehint 'bool' but typehints available only since php 7"
2020-12-14 12:15:52 +03:00
Maxim.Kolmakov
daf8849db4
Revert incorrect changes
2020-11-24 14:58:53 +01:00