Made with KolourPaint and screenshots from Kate (with the GitHub theme).

  • HiddenLayer555@lemmy.mlOP
    link
    fedilink
    English
    arrow-up
    6
    ·
    19 hours ago

    TIL PHP has statics.

    Also, does PHP actually enforce the type declarations? I’d assume it would but knowing PHP…

    • danA
      link
      fedilink
      arrow-up
      4
      ·
      19 hours ago

      It enforces scalar types (string, int, etc) at runtime if you enable strict mode. There’s also static analysis tools like PHPStan and Psalm that will flag issues at build time.