Comments (7)
I know it's been quite a while, sorry I didn't get to this earlier.
I've just done an overhaul of our tests:
- Run on a system using the polyfill: Everything is ok.
- Run on a system using the extension: Same result as above.
To save on work, I've changed the code to not use references as described above. I thought you would want to know that there is still a references issue lurking in there somewhere.
from polyfill.
So strange. 🤔
I'll take a look asap. Thanks for the report. :)
from polyfill.
I have a feeling it's because we're not dereferencing consistently. I don't think it's add
vs constructor, but the fact that you're using references in the first case.
What's your code for hash
and equals
?
from polyfill.
It will definitely be because of the references.
public function equals($obj): bool
{
return get_class($this) === get_class($obj)
&& $this->hash() === $obj->hash();
}
public function hash()
{
return (string) $this;
}
public function __toString(): string
{
return (string) $this->identity;
}
Just a simple set of functions as it's a uuid.
from polyfill.
I think this has now been fixed in the extension?
from polyfill.
Great if it has! I will try to reproduce this (the code has moved on since I logged it).
from polyfill.
Thanks @designermonkey, I'll try to add a failing test for this.
from polyfill.
Related Issues (20)
- `composer.json` should be valid HOT 7
- Split of Hashable HOT 3
- Add methods to Pair HOT 2
- Call to undefined method Ds\Map::offsetSet() HOT 2
- Installation instructions improvement HOT 2
- Ds\Map->map() loses keys HOT 2
- Map->reverse()
- Install polyfill only HOT 1
- Tests failing HOT 3
- polyfill is not a drop-in replacement for php extension HOT 2
- Cloning behavior inconsistent with the extension HOT 2
- Serialize/Unserialize behavior inconsistent with the extension
- Tag a new release? HOT 1
- Polyfill signatures inconsistent with the extension HOT 4
- Method getIterable() does not seem to exist in ext-ds while it does in polyfill HOT 2
- Map::get(): argument fallback value
- Set::map() implementation is missing
- PHP Deprecation warning HOT 4
- PHP 8.1 return type deprecation notices
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polyfill.