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

  • HiddenLayer555@lemmy.mlOP
    link
    fedilink
    English
    arrow-up
    0
    ·
    9 days ago

    TIL PHP has statics.

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

    • dan@upvote.au
      link
      fedilink
      arrow-up
      0
      ·
      9 days 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.