Closed aurelijusrozenas closed 5 years ago
@aurelijusrozenas could you add a test for this in Symfony/Tests/Functions/ReturnTypeUnitTest.*?
@mmoll well, turns out this was a problem because of the phpcs < 3.3.0 (mystery solved!) so I guess I'm closing this.
Fixed ReturnTypeSniff when
return_type_token
does not exist in $methodProperties.I don't know how is this broken on my machine and this PR is the only way I could make it work. https://i.imgur.com/cNGHc9b.png