Skip to content

Instantly share code, notes, and snippets.

@krmgns
Created December 8, 2019 22:05
Show Gist options
  • Save krmgns/91314ac2e46c880b99150d0867d75eba to your computer and use it in GitHub Desktop.
Save krmgns/91314ac2e46c880b99150d0867d75eba to your computer and use it in GitHub Desktop.
Another "uninitialized" thing..
class A { protected int $x; }
class AA extends A { protected $x; }
// -> PHP Fatal error: Type of acme\AA::$ must be int (as in class acme\A)
No var name here "acme\AA::$".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment