Gina Peter Banyard
16872310d5
ext/spl: Deprecate SplObjectStorage::contains(), SplObjectStorage::attach(), and SplObjectStorage::detach() ( #19424 )
...
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_splobjectstoragecontains_splobjectstorageattach_and_splobjectstoragedetach
2025-08-09 11:36:14 +01:00
Niels Dossche
f97bd071d5
Implement SeekableIterator for SplObjectStorage ( #13665 )
2024-05-05 13:26:54 +02:00
Máté Kocsis
577db99462
Verify stub aliases in CI ( #13682 )
...
In the same time, let's not verify implementation aliases since they may now legitimately differ from their aliased function/method counterparts (think about the ext/dom refactoring where e.g. many return type declarations have changed). Additionally, unnecessary `@no-verify` tags are cleaned up.
2024-03-13 23:32:35 +01:00
Jorg Adam Sowa
f0757100a4
Typed constants in SPL extension ( #12358 )
2023-10-07 13:14:57 +01:00
Máté Kocsis
b73f139c70
Declare ext/spl constants in stubs ( #9226 )
2022-08-02 16:37:12 +02:00
Máté Kocsis
24be11f632
Remove bogus type of $object param in SplObjectStorage::offsetSet()
...
This parameter definitely only accepts objects, so we shouldn't explicitly
mark it as mixed. Looks like I accidentally added this type when adding
the tentative return type.
Closes GH-7840
2021-12-28 18:01:26 +01:00
Máté Kocsis
6d805ed275
Declare tentative return types for ext/spl - part 2
...
Closes GH-7235
2021-07-14 15:19:51 +02:00
Nikita Popov
42cb5b5fa8
Throw from MultipleIterator::key/current() for invalid iterator
...
Calling current()/key() on an invalid iterator is an error
condition. Throw instead of returning false.
2021-07-14 12:40:45 +02:00
Máté Kocsis
1bd779c231
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Fix some return types in ext/spl
2021-07-14 12:38:17 +02:00
Máté Kocsis
d618ed0a2d
Fix some return types in ext/spl
...
Closes GH-7237
2021-07-14 12:33:14 +02:00
Máté Kocsis
4f4c031f62
Generate ext/spl class entries from stubs
...
Closes GH-6709
2021-02-18 13:01:51 +01:00
Nikita Popov
a9efcb1561
gen_stub: Also verify implementation-alias
...
This makes --verify also check @implementation-alias. Failures are
ignored using @no-verify instead. Some mistakes have been made that
would have been caught by this...
Closes GH-6615.
2021-01-19 09:48:33 +01:00
Nikita Popov
68195bd481
Update ext/spl parameter names
...
Closes GH-6284.
2020-10-07 12:26:46 +02:00
Máté Kocsis
64af12d13b
Add support for @implementation-alias in stubs
...
Closes GH-6170
2020-09-21 10:08:45 +02:00
Máté Kocsis
8107a1da5a
Use ZPP instead of custom type checks
...
We can add these types as a native type declaration to stubs as a side-effect. Closes GH-6068
2020-09-04 14:32:34 +02:00
Máté Kocsis
f7fbc6333f
Add more precise type info for stubs
...
Closes GH-6005
2020-09-01 16:35:56 +02:00
Nikita Popov
f3d6203b0b
Use a dedicated method for MultipleIterator::countIterators()
...
This method has a different signature from
SplObjectStorage::count(), so don't share implementations.
2020-08-13 14:44:03 +02:00
Máté Kocsis
d7f7080bb5
Generate methods entries from stubs for ext/spl
...
Closes GH-5458
2020-04-25 23:54:56 +02:00
Christoph M. Becker
9809713844
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix #69264 : __debugInfo() ignored while extending SPL classes
2020-04-06 12:04:12 +02:00
Máté Kocsis
c3554eb2c4
Fix ZPP of MultipleIterator::detachIterator() and MultipleIterator::containsIterator()
2020-03-16 12:05:40 +01:00
Máté Kocsis
04a44e1f08
Add stubs for SplObjectStorage and MultipleIterator
...
Closes GH-5267
2020-03-16 12:05:23 +01:00