Что выведет код в php 8+?
❤️ — Fatal error: Declaration of Foo:test(string $string) must be compatible with T::test(int $x, int $y)
👍 — string(1) «5»
🔥 — Fatal error: Trait method test has not been applied, because there are collisions
Post #1673
915

- 🔥 12
- 👎 2
- 👍 1
- 🎉 1