Christophe Coevoet

Results 2443 comments of Christophe Coevoet

the need for usage in a library is to write code in a way being compatible with **both** versions of the dependency at the same time (which is not the...

@calebdw if a downstream package does a `match` without `default` branch, it **will** break, as PHP requires `match` to be able to match a value (otherwise, it throws an Error)....

@steverhoades do you have any insight on this ? Is my analysis of the expected types correct ? And what should be done about that ?

@VincentLanglet variable names need to be valid identifiers anyway to be usable, so I don't see the benefit of supporting string literals as keys there instead of only identifiers. This...

I would suggest removing the return type, as there is no reason to restrict it to strings (we could want to cycle over a list of booleans). I would suggest...

@smnandre the common use case is to use this `cycle` inside the body of a loop, using `loop.index` as position. The cycle function is not the one controlling the iteration...

@fabpot converting backed enums to their values when reading them in `getAttribute` would be a huge BC break and would prevent using any method of the enum (accessing their value...

disabling verify_peer is even less secure than allowing self signed certificates (as it does not even require a valid certificate signature...)

@PululuK and why not using `(new ExecutableFinder())->find("php$version")` for that purpose then ?

Typos in the versions are something you can validate in your application code if there is a risk of such type (which depends where the version comes from). and all...