$ php -v):PHP 7.1.18 (cli) (built: May 25 2018 19:18:59) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.1.18, Copyright (c) 1999-2018, by Zend Technologies
$ php-cs-fixer -V):PHP CS Fixer 2.12.1 Long Journey by Fabien Potencier and Dariusz Ruminski
vendor/bin/php-cs-fixer fix -v --using-cache=no
Basically the same as dmvdbrugge/dynamic-components, except explicit_string_variable, header_comment, no_alternative_syntax, and no_unset_on_property
/**
* @param null|string $myStr
*/
public function testFunc(?string $myStr);
/**
* @param string|null $myStr
*/
public function testFunc(?string $myStr);
public function testFunc(?string $myStr);
This _could_ also be seen as a bug in no_superfluous_phpdoc_tags that it doesn't think null|string is superfluous, whereas it (rightfully) does think so about string|null.
Meta: this is case 4 of #3844
This could also be seen as a bug in no_superfluous_phpdoc_tags that it doesn't think null|string is superfluous, whereas it (rightfully) does think so about string|null.
Indeed I would consider it a bug in no_superfluous_phpdoc_tags.
Most helpful comment
Indeed I would consider it a bug in
no_superfluous_phpdoc_tags.