Skip to content

Commit

Permalink
Fix deprecation of dynamic assignment of class properties
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioMendolia committed Jan 11, 2024
1 parent 8f962ac commit 5700d07
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Liip/RMT/Version/Persister/TagValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@

class TagValidator
{
public function __construct($regex, $tagPrefix = '')
protected $regex;
protected $tagPrefix;
public function __construct(string $regex, string $tagPrefix = '')
{
$this->regex = $regex;
$this->tagPrefix = $tagPrefix;
Expand Down

0 comments on commit 5700d07

Please sign in to comment.