Announcement

Collapse
No announcement yet.

PHPStan 2.0 Released For Leading PHP Static Analyzer

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHPStan 2.0 Released For Leading PHP Static Analyzer

    Phoronix: PHPStan 2.0 Released For Leading PHP Static Analyzer

    PHPStan 2.0 is out today as what is the best open-source static analyzer for the PHP programming language...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    I don't understand why there is need for php_something_abcd() as global functions, maybe static... and not organized, switch could happen automatically with upgrade_helper, maybe in the beginning only as forwarder with warning

    objects are coming in 2000, data programming ongoing research(also monorepo research on the way), getcomposer libs astonishing forwarder bypass/shim needed...

    today some linux hackers could do some regex shit with pipe and mv, but I think some utility Earth Wonder could do that also in some IDE
    Last edited by elbar; 11 November 2024, 12:30 PM.

    Comment


    • #3
      Isn't PHP "C but jank"? I don't know exactly what you're referring to but it sounds par for course.

      Comment


      • #4
        In Rust it is so easy, you just type "cargo fmt" and it works out of the box, also in Deno you can just type "deno fmt" and it works out of the box.

        With PHP first you must use install Composer, then you must get PHPStan with Composer, then you must pick a profile to lint against.

        Comment


        • #5
          Originally posted by uid313 View Post
          In Rust it is so easy, you just type "cargo fmt" and it works out of the box, also in Deno you can just type "deno fmt" and it works out of the box.

          With PHP first you must use install Composer, then you must get PHPStan with Composer, then you must pick a profile to lint against.
          Or just simply use an IDE

          Comment


          • #6
            Originally posted by elbar View Post
            I don't understand why there is need for php_something_abcd() as global functions, maybe static... and not organized, switch could happen automatically with upgrade_helper, maybe in the beginning only as forwarder with warning

            objects are coming in 2000, data programming ongoing research(also monorepo research on the way), getcomposer libs astonishing forwarder bypass/shim needed...

            today some linux hackers could do some regex shit with pipe and mv, but I think some utility Earth Wonder could do that also in some IDE
            Somehow I am curious to know what you are trying to say.

            Comment


            • #7
              Originally posted by lamka02sk View Post
              Or just simply use an IDE
              Genuine curiosity - What would be good choices for an IDE with proper PHP support?

              Comment


              • #8
                Originally posted by kobblestown View Post

                Genuine curiosity - What would be good choices for an IDE with proper PHP support?
                phpstorm or vscode ....

                I've been using phpstorm for a number of years; before then I tried to use netbeans (but felt it was a clunky and slow and lacking features that phpstorm had).

                Phpstorm has a free trial period, and if you're a FLOSS contributor I believe you can get a free licence.

                Comment


                • #9
                  Originally posted by uid313 View Post
                  With PHP first you must use install Composer, then you must get PHPStan with Composer, then you must pick a profile to lint against.
                  Not strictly true. You can download PHPStan (and many other tools) as a phar (PHP archive), same as Composer itself.

                  Besides, with Rust you must first get Cargo, yes? Sure, Cargo makes a lot of things easier, but Rust does benefit for being a younger language, appearing at a time when such tools were expected to be in the programmer's toolbox already.

                  Comment


                  • #10
                    Originally posted by uid313 View Post
                    In Rust it is so easy, you just type "cargo fmt" and it works out of the box, also in Deno you can just type "deno fmt" and it works out of the box.

                    With PHP first you must use install Composer, then you must get PHPStan with Composer, then you must pick a profile to lint against.
                    False. You have to install Cargo or Deno first as well. Slipped your mind, maybe?

                    Comment

                    Working...
                    X