Skip to content

Commit

Permalink
fix: Fixes some Readonly form elements that were not renamed to Reado…
Browse files Browse the repository at this point in the history
…nlyElement in php8 upgrade. (dvsa/olcs-internal#168)
  • Loading branch information
fibble authored May 20, 2024
1 parent 7048770 commit 66aed2b
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class FeeRateDetails
use IdTrait;

/**
* @Form\Type("\Common\Form\Elements\Types\Readonly")
* @Form\Type("\Common\Form\Elements\Types\ReadonlyElement")
* @Form\Options({
* "label": "ID:"
* })
Expand All @@ -22,7 +22,7 @@ class FeeRateDetails
public $idReadOnly;

/**
* @Form\Type("\Common\Form\Elements\Types\Readonly")
* @Form\Type("\Common\Form\Elements\Types\ReadonlyElement")
* @Form\Options({
* "label": "Fee Type:"
* })
Expand All @@ -31,7 +31,7 @@ class FeeRateDetails
public $feeType;

/**
* @Form\Type("\Common\Form\Elements\Types\Readonly")
* @Form\Type("\Common\Form\Elements\Types\ReadonlyElement")
* @Form\Options({
* "label": "Description:"
* })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ class UserLoginSecurity
* @Form\Options({"label":"Account locked"})
* @Form\Required(false)
* @Form\Attributes({"id":"locked", "required": false})
* @Form\Type("Common\Form\Elements\Types\Readonly")
* @Form\Type("Common\Form\Elements\Types\ReadonlyElement")
*/
public $locked = null;

/**
* @Form\Options({"label":"Password last reset"})
* @Form\Required(false)
* @Form\Attributes({"id":"passwordLastReset", "required": false})
* @Form\Type("Common\Form\Elements\Types\Readonly")
* @Form\Type("Common\Form\Elements\Types\ReadonlyElement")
*/
public $passwordLastReset = null;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class CreatePermit extends Base
public $title = null;

/**
* @Form\Type("\Common\Form\Elements\Types\Readonly")
* @Form\Type("\Common\Form\Elements\Types\ReadonlyElement")
* @Form\Options({
* "label": "Stock"
* })
Expand Down Expand Up @@ -57,7 +57,7 @@ class CreatePermit extends Base

/**
* @Form\Type("Laminas\Form\Element\Hidden")
* @Form\Type("\Common\Form\Elements\Types\Readonly")
* @Form\Type("\Common\Form\Elements\Types\ReadonlyElement")
* @Form\Options({
* "label": "Current total vehicle authorization"
* })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class Top extends \Olcs\Form\Model\Fieldset\Base
{
/**
* @Form\Type("\Common\Form\Elements\Types\Readonly")
* @Form\Type("\Common\Form\Elements\Types\ReadonlyElement")
* @Form\Options({
* "label": "Stock"
* })
Expand Down Expand Up @@ -83,7 +83,7 @@ class Top extends \Olcs\Form\Model\Fieldset\Base

/**
* @Form\Type("Laminas\Form\Element\Hidden")
* @Form\Type("\Common\Form\Elements\Types\Readonly")
* @Form\Type("\Common\Form\Elements\Types\ReadonlyElement")
* @Form\Options({
* "label": "Current total vehicle authorization"
* })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Top extends \Olcs\Form\Model\Fieldset\Base

/**
* @Form\Type("Laminas\Form\Element\Hidden")
* @Form\Type("\Common\Form\Elements\Types\Readonly")
* @Form\Type("\Common\Form\Elements\Types\ReadonlyElement")
* @Form\Options({
* "label": "Current total vehicle authorization"
* })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class OperatorId
/**
* @Form\Options({"label": "internal-operator-id"})
* @Form\Name("operator-id")
* @Form\Type("\Common\Form\Elements\Types\Readonly")
* @Form\Type("\Common\Form\Elements\Types\ReadonlyElement")
*/
public $operatorId = null;
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class TransportManagerDetails
/**
* @Form\Options({"label": "internal-transport-manager-id"})
* @Form\Name("transport-manager-id")
* @Form\Type("\Common\Form\Elements\Types\Readonly")
* @Form\Type("\Common\Form\Elements\Types\ReadonlyElement")
*/
public $transportManagerId = null;

Expand Down

0 comments on commit 66aed2b

Please sign in to comment.