4.1.8 (2017-10-18)

Overview of merged pull requests

BUGFIX: Make string-based Fizzle filters treat numbers as strings

This fixes #1048 by making sure that strpos() recieves two strings instead of a string and a number in a Fizzle filter operation (*=, ^=, $=), making sure that it will look for the actual number in the string it is comparing the operand to instead of looking for the char that is represented by the number as a unicode ordinal number.

It does this by casting the variable in which the operand is saved to string where it is given to the strpos/strrpos function as a parameter.

TASK: Document installing latest stable instead of fixed version

Instead of documenting how to install a specific fixed version just document installing the latest stable version. If people want to install an older version they can figure that out. This prevents errors due to forgotten updates to this section of the documentation.

Fixes: #1078

  • Packages: Flow

TASK: Describe use of 3rd party packages correctly in docs

Adjusted documentation to current status quo regarding package management and third party packages.

Fixes: #751

BUGFIX: The ScalarTypeToObjectConverter should expose boolean instead of bool

What I did Fixed the ScalarTypeToObjectConverter to expose boolean as supported sourceType instead of bool How I did it Used the keyboard How to verify it The TypeConverter now works for boolean values

Checklist

  • Packages: Flow FluidAdaptor

TASK: Make PHP-Templates PSR2-compatible

<!– Thanks for your contribution, we appreciate it!

Please read through our pull request guidelines, there are some interesting things there: https://discuss.neos.io/t/creating-a-pull-request/506

And one more thing… Don’t forget about the tests! –>

The PSR2 standard says: Opening braces for classes MUST go on the next line, and closing braces MUST go on the next line after the body.

This is currently not implemented by the Templates and this commit is fixing it.

Checklist

BUGFIX: Force PropertyMapper to correctly handle bool in constructor

What I did Found a bug in the propertymapping when mapping from scalar bool to object. Fixed it in the Typeconverter and added tests

How I did it Fixed the ScalarTypeToObjectConverter for bool scalar type.

How to verify it A ValueObject with the constructor signature containing __construct(bool $value) can be build from a scalar boolean value.

Checklist

  • Packages: Eel Flow FluidAdaptor

BUGFIX: AnnotationDriver correctly applies ORM relation annotations

Before any falsy value in one of the ORM relation annotations, like e.g. orphanRemoval=false or cascade={}, would not be applied to mapping and hence the defaults still be in effect. This change fixes that by explicitly checking the annotation properties against null, so that any value specified by the user will actually be applied.

Fixes #1079

BUGFIX: CurlEngine follows chain of Http headers

Under some circumstances, curl will return all the headers of the request chain, for example when the CURLOPT_FOLLOWLOCATION option is set. This change will make the CurlEngine follow the chain of response headers until the final response.

Fixes #1044, #849, #570