Skip to content

Commit ae300f5

Browse files
committed
can't do computed property in older PHP
1 parent 0cabb1b commit ae300f5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/LaunchDarkly/SemanticVersion.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
*/
1111
class SemanticVersion
1212
{
13-
private static $REGEX = '/^(?<major>0|[1-9]\d*)(\.(?<minor>0|[1-9]\d*))?(\.(?<patch>0|[1-9]\d*))?' .
14-
'(\-(?<prerel>[0-9A-Za-z\-\.]+))?(\+(?<build>[0-9A-Za-z\-\.]+))?$/';
13+
private static $REGEX = '/^(?<major>0|[1-9]\d*)(\.(?<minor>0|[1-9]\d*))?(\.(?<patch>0|[1-9]\d*))?(\-(?<prerel>[0-9A-Za-z\-\.]+))?(\+(?<build>[0-9A-Za-z\-\.]+))?$/';
1514

1615
/** @var int */
1716
public $major;

0 commit comments

Comments
 (0)