home.social

#php_codesniffer — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #php_codesniffer, aggregated by home.social.

  1. Is it possible to use #PHP_CodeSniffer to find errors in #PSR-4 namespace declarations? Like, a mismatch between class namespace and file system location?
    #php

  2. Is it possible to use #PHP_CodeSniffer to find errors in #PSR-4 namespace declarations? Like, a mismatch between class namespace and file system location?
    #php

  3. Is it possible to use #PHP_CodeSniffer to find errors in #PSR-4 namespace declarations? Like, a mismatch between class namespace and file system location?
    #php

  4. Is it possible to use #PHP_CodeSniffer to find errors in #PSR-4 namespace declarations? Like, a mismatch between class namespace and file system location?
    #php

  5. Is it possible to use #PHP_CodeSniffer to find errors in #PSR-4 namespace declarations? Like, a mismatch between class namespace and file system location?
    #php

  6. Note to self: the rule to detect #PHP short open tags with #PHP_CodeSniffer is:

    Generic.PHP.DisallowShortOpenTag.Found

    And the command needs to be invoked as:

    php -d short_open_tag=on vendor/bin/phpcs

    The magic trailing ".Found" in the rule name is what allows the <?= variant.

  7. Note to self: the rule to detect #PHP short open tags with #PHP_CodeSniffer is:

    Generic.PHP.DisallowShortOpenTag.Found

    And the command needs to be invoked as:

    php -d short_open_tag=on vendor/bin/phpcs

    The magic trailing ".Found" in the rule name is what allows the <?= variant.

  8. Note to self: the rule to detect #PHP short open tags with #PHP_CodeSniffer is:

    Generic.PHP.DisallowShortOpenTag.Found

    And the command needs to be invoked as:

    php -d short_open_tag=on vendor/bin/phpcs

    The magic trailing ".Found" in the rule name is what allows the <?= variant.

  9. Hey, and friends!

    @jrf_nl, maintainer of is live-streaming the upgrade to the 4.0 branch of this week!

    Such a fun idea! Come along and watch in action!

    github.com/PHPCSStandards/PHP_

  10. Hey, #OpenSource and #PHP friends!

    @jrf_nl, maintainer of #PHP_CodeSniffer is live-streaming the upgrade to the 4.0 branch of #PHPCS this week!

    Such a fun idea! Come along and watch #FOSS in action!

    github.com/PHPCSStandards/PHP_

  11. Hey, #OpenSource and #PHP friends!

    @jrf_nl, maintainer of #PHP_CodeSniffer is live-streaming the upgrade to the 4.0 branch of #PHPCS this week!

    Such a fun idea! Come along and watch #FOSS in action!

    github.com/PHPCSStandards/PHP_

  12. Hey, #OpenSource and #PHP friends!

    @jrf_nl, maintainer of #PHP_CodeSniffer is live-streaming the upgrade to the 4.0 branch of #PHPCS this week!

    Such a fun idea! Come along and watch #FOSS in action!

    github.com/PHPCSStandards/PHP_

  13. Hey, #OpenSource and #PHP friends!

    @jrf_nl, maintainer of #PHP_CodeSniffer is live-streaming the upgrade to the 4.0 branch of #PHPCS this week!

    Such a fun idea! Come along and watch #FOSS in action!

    github.com/PHPCSStandards/PHP_

  14. I found a #PHP file incorrectly indented (occurrences of 5 spaces rather than 4). Neither #PhpStorm nor #PHP_CodeSniffer would report or fix it. I had to use Visual Studio Code to reformat the file. Afterwards, I tried to replicate it with a fresh file and I couldn't. I recovered old file from history and I still couldn't reproduce the problem.

  15. I found a #PHP file incorrectly indented (occurrences of 5 spaces rather than 4). Neither #PhpStorm nor #PHP_CodeSniffer would report or fix it. I had to use Visual Studio Code to reformat the file. Afterwards, I tried to replicate it with a fresh file and I couldn't. I recovered old file from history and I still couldn't reproduce the problem.

  16. I found a #PHP file incorrectly indented (occurrences of 5 spaces rather than 4). Neither #PhpStorm nor #PHP_CodeSniffer would report or fix it. I had to use Visual Studio Code to reformat the file. Afterwards, I tried to replicate it with a fresh file and I couldn't. I recovered old file from history and I still couldn't reproduce the problem.

  17. I found a #PHP file incorrectly indented (occurrences of 5 spaces rather than 4). Neither #PhpStorm nor #PHP_CodeSniffer would report or fix it. I had to use Visual Studio Code to reformat the file. Afterwards, I tried to replicate it with a fresh file and I couldn't. I recovered old file from history and I still couldn't reproduce the problem.

  18. I found a #PHP file incorrectly indented (occurrences of 5 spaces rather than 4). Neither #PhpStorm nor #PHP_CodeSniffer would report or fix it. I had to use Visual Studio Code to reformat the file. Afterwards, I tried to replicate it with a fresh file and I couldn't. I recovered old file from history and I still couldn't reproduce the problem.

  19. I'm hoping to get most of the syntax support for PHP 8.3 ready over the next few days, which means that if all goes well, it will be included in #PHP_CodeSniffer 3.9.0 release.

    The PR to add Tokenizer support for PHP 8.3 readonly anonymous classes to PHPCS is already open.

    github.com/PHPCSStandards/PHP_

    #phpcs

  20. I'm hoping to get most of the syntax support for PHP 8.3 ready over the next few days, which means that if all goes well, it will be included in #PHP_CodeSniffer 3.9.0 release.

    The PR to add Tokenizer support for PHP 8.3 readonly anonymous classes to PHPCS is already open.

    github.com/PHPCSStandards/PHP_

    #phpcs

  21. I'm hoping to get most of the syntax support for PHP 8.3 ready over the next few days, which means that if all goes well, it will be included in #PHP_CodeSniffer 3.9.0 release.

    The PR to add Tokenizer support for PHP 8.3 readonly anonymous classes to PHPCS is already open.

    github.com/PHPCSStandards/PHP_

    #phpcs

  22. I'm hoping to get most of the syntax support for PHP 8.3 ready over the next few days, which means that if all goes well, it will be included in #PHP_CodeSniffer 3.9.0 release.

    The PR to add Tokenizer support for PHP 8.3 readonly anonymous classes to PHPCS is already open.

    github.com/PHPCSStandards/PHP_

    #phpcs

  23. I'm hoping to get most of the syntax support for PHP 8.3 ready over the next few days, which means that if all goes well, it will be included in #PHP_CodeSniffer 3.9.0 release.

    The PR to add Tokenizer support for PHP 8.3 readonly anonymous classes to PHPCS is already open.

    github.com/PHPCSStandards/PHP_

    #phpcs