home.social

#php_codesniffer — Public Fediverse posts

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

fetched live
  1. On September 22 we are welcoming @jrf_nl with a @phpcs Ask Me Anything!

    In this interactive session, you can ask Juliette anything you like about PHP_CodeSniffer and she will answer your questions via live demo.

    We start the evening with food 🍕 and drinks. And have time to socialize afterwards.

    Register on: meetup.com/full-stack-eindhove

    #PHP #PHP_CodeSniffer #meetup #usergroup #eindhoven

  2. On September 22 we are welcoming @jrf_nl with a @phpcs Ask Me Anything!

    In this interactive session, you can ask Juliette anything you like about PHP_CodeSniffer and she will answer your questions via live demo.

    We start the evening with food 🍕 and drinks. And have time to socialize afterwards.

    Register on: meetup.com/full-stack-eindhove

    #PHP #PHP_CodeSniffer #meetup #usergroup #eindhoven

  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. 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.

  6. 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_

  7. 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_

  8. 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.

  9. 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.

  10. 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

  11. 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