New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The documentation for the <=>
operator is missing
#3922
Comments
You're right, it is only mentionned on the page you linked and the sort filter page. And it really is the direct equivalent of the PHP spaceship. |
The documentation of the
I had to dig into the tests of TwigPHP to discover this. https://github.com/twigphp/Twig/blob/3.x/tests/Fixtures/expressions/has_every.test |
I guess you could submit a PR, with the content you think is missing ? |
Well, I don't know anything about these operators, so I can't submit any PR. Besides, the people that wrote the PHP implementation did have access to the internal documentation / specification of those operators, so it should be easier to just publish these documents so that we can write the "user friendly" documentation from them. What do you think? |
I'm happy some people worked to produce all the code of this package and i'm grateful for it Source code & implementation
DetailsSo..
|
@ericmorand There is no hidden internal specification document that we could publish. |
Except if I miss something, there is no documentation for the
<=>
operator even though it is mentioned in both Twig 2 and 3 documentation:https://twig.symfony.com/doc/2.x/templates.html#expressions
https://twig.symfony.com/doc/3.x/templates.html#expressions
The text was updated successfully, but these errors were encountered: