Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/PropertyProcessor/DoctrineMappingProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ protected function processColumn(Column $column, PropertyInformation $informatio
throw new InvalidColumnSettingsException(
sprintf(
'Decimal type of "%s::%s" has scale and precision set to 0 or not set at all.'
. PHP_EOL . 'Usage: e.g. @ORM\Column(type="decimal", precision=2, scale=4).'
. PHP_EOL . 'Usage: e.g. #[ORM\Column(type: "decimal", precision: 2, scale: 4)].'
. PHP_EOL . '"The precision represents the number of digits that are stored for values,'
. PHP_EOL . ' and the scale represents the number of digits that can be stored'
. PHP_EOL . ' following the decimal point".',
Expand Down
2 changes: 0 additions & 2 deletions test/Reflection/ReflectionClassTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public function fileProvider(): array
' *' . PHP_EOL .
' * en dit dan?' . PHP_EOL .
' * @version bluh' . PHP_EOL .
' * @ORM\Column(name="stam", length=100, type="string")' . PHP_EOL .
' */' . PHP_EOL .
'private $stam;',
],
Expand All @@ -55,7 +54,6 @@ public function fileProvider(): array
'/**' . PHP_EOL .
' * Waarom dit dan?' . PHP_EOL .
' * @version bluh' . PHP_EOL .
' * @ORM\Column(name="stam", length=100, type="string")' . PHP_EOL .
' */' . PHP_EOL .
'private static $stam;',
],
Expand Down
2 changes: 1 addition & 1 deletion test/Reflection/fixtures/abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ abstract class Boom {
*
* en dit dan?
* @version bluh
* @ORM\Column(name="stam", length=100, type="string")
*/
#[ORM\Column(name: 'stam', length: 100, type: 'string')]
private $stam;

use useless_trait;
Expand Down
2 changes: 1 addition & 1 deletion test/Reflection/fixtures/multiple_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ abstract class Boom {
*
* en dit dan?
* @version bluh
* @ORM\Column(name="stam", length=100, type="string")
*/
#[ORM\Column(name: 'stam', length: 100, type: 'string')]
private $stam;

use useless_trait;
Expand Down
2 changes: 1 addition & 1 deletion test/Reflection/fixtures/static.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ abstract class Boom {
/**
* Waarom dit dan?
* @version bluh
* @ORM\Column(name="stam", length=100, type="string")
*/
#[ORM\Column(name: 'stam', length: 100, type: 'string')]
private static $stam;

use useless_trait;
Expand Down
Loading