{"push_id":2418326640,"size":2,"distinct_size":2,"ref":"refs/heads/master","head":"fbca90cc5837b26996d41f02b4ba5c759943c8fa","before":"e19258e32d0d0e8e3dd97e32345a5b68251ba3e1","commits":[{"sha":"d01075cc90e39f27912ae52c8642d3d80049d5dc","author":{"name":"Toon Verwerft","email":"0015d9f77819e322622a8a287247069cee61f874@gmail.com"},"message":"Transform Fully Qualified parameters and return types to short version","distinct":true,"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/commits/d01075cc90e39f27912ae52c8642d3d80049d5dc"},{"sha":"fbca90cc5837b26996d41f02b4ba5c759943c8fa","author":{"name":"Dariusz Ruminski","email":"df7bf976e7ed05050153700c7d82d3bd19184c4d@gmail.com"},"message":"feature #3276 Transform Fully Qualified parameters and return types to short version (veewee, keradus)\n\nThis PR was squashed before being merged into the 2.11-dev branch (closes #3276).\n\nDiscussion\n----------\n\nTransform Fully Qualified parameters and return types to short version\n\nThis PR removes fully qualified parameters and return types to the short versions when they are being imported / in de same namespace:\n\nResult:\n```php\n<?php\n\nuse Foo\\Bar;\nuse Foo\\Bar\\Baz;\n\nclass SomeClass\n{\n    public function doSomething(Bar $foo): Baz\n    {\n    }\n}\n```\n\nSource:\n```php\n<?php\n\nuse Foo\\Bar;\nuse Foo\\Bar\\Baz;\n\nclass SomeClass\n{\n    public function doSomething(\\Foo\\Bar $foo): \\Foo\\Bar\\Baz\n    {\n    }\n}\n```\n\nIn older codebases (early namespaces), this was frequently used. Besides that, it can be used to fix autogenerated code from zend-code (https://github.com/zendframework/zend-code/issues/76) and crappy docblocks in the https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/3110 PR I am working on:\n\nCommits\n-------\n\nd01075cc Transform Fully Qualified parameters and return types to short version","distinct":true,"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/commits/fbca90cc5837b26996d41f02b4ba5c759943c8fa"}]}
{"actor":{"display_login":"keradus"}}