polyfill
polyfill copied to clipboard
Compatibility polyfill
Same as in https://github.com/php-ds/ext-ds/pull/183
This is needed in preparation for the PhpStorm stub (php-ds/ext-ds#128).
Further to #97, there are still more deprecation warnings for PHP 8.1. ``` User Deprecated: Method "IteratorAggregate::getIterator()" might add "\Traversable" as a native return type declaration in the future. Do...
Am I right that that the fallback value for `$default` in `Map::get()` can never be used? https://github.com/php-ds/polyfill/blob/master/src/Map.php#L320 If the method is called without its second argument (to get the fallback...
This PR requires PR #50 [Fixed the documentation]. ## Steps to recreate / maintain: 0. For every class, interface, and trait: a. Remove every private access method and property. b....
Hi! I just released a library to handle Tree data structures using Ds Deque class ho handle dynamic increase/decrease of childrens. What I found interesting is the following: - before...
HI there! When extension is enabled: ``` serialize(new Ds\Set()); // result - 'C:6:"Ds\Set":0:{}' ``` when extension is disabled ``` serialize(new Ds\Set()); // result - 'O:6:"Ds\Set":1:{s:13:" Ds\Set table";O:6:"Ds\Map":2:{s:13:" Ds\Mappairs";a:0:{}s:16:" Ds\Map capacity";i:8;}}'...
Hi there! I'm implementing a middleware pipeline third-party library using this extension with the polyfill. The implementation exhausts the `Queue` class of this library recursively by cloning itself. You can...
DocBlock saids it returns a Map but it does not.