79802718

Date: 2025-10-28 11:20:49
Score: 0.5
Natty:
Report link

I think the following has worked since PHP 5.6, using constant arrays instead of static:

public const ARRAY_1 = ['a', 'b', 'c'];
public const ARRAY_2 = ['d', 'e', 'f'];
public const ARRAY_3 = [
  ...self::ARRAY_1,
  ...self::ARRAY_2
];
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alexander Hugestrand