Use short array syntax (#135)

This commit is contained in:
Simon Schaufelberger
2018-02-10 19:05:19 +01:00
committed by Kevin Papst
parent 4c6158c1ea
commit 5527f29caf
14 changed files with 33 additions and 34 deletions

View File

@@ -19,9 +19,9 @@ class Role extends Constraint
{
const ROLE_ERROR = 'xd5hffg-dsfef3-426a-83d7-1f2d33hs5d84';
protected static $errorNames = array(
protected static $errorNames = [
self::ROLE_ERROR => 'ROLE_ERROR',
);
];
public $message = 'This value is not a valid role.';
}