File tree Expand file tree Collapse file tree 7 files changed +11
-12
lines changed
src/MartinGeorgiev/Doctrine/DBAL/Types
tests/Unit/MartinGeorgiev/Utils Expand file tree Collapse file tree 7 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 4444 - uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
4545
4646 - name : Set up PHP
47- uses : shivammathur/setup-php@bf6b4fbd49ca58e4608c9c89fba0b8d90bd2a39f # v2
47+ uses : shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2
4848 with :
4949 php-version : ' 8.5'
5050 extensions : ctype, json, mbstring
Original file line number Diff line number Diff line change 8282 - uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
8383
8484 - name : Set up PHP
85- uses : shivammathur/setup-php@bf6b4fbd49ca58e4608c9c89fba0b8d90bd2a39f # v2
85+ uses : shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2
8686 with :
8787 php-version : ${{ matrix.php }}
8888 coverage : ${{ matrix.calculate-code-coverage == true && 'xdebug' || 'none' }}
Original file line number Diff line number Diff line change 6464 - uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
6565
6666 - name : Set up PHP with PECL extension
67- uses : shivammathur/setup-php@bf6b4fbd49ca58e4608c9c89fba0b8d90bd2a39f # v2
67+ uses : shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2
6868 with :
6969 php-version : ${{ matrix.php }}
7070 coverage : ${{ matrix.calculate-code-coverage == true && 'xdebug' || 'none' }}
Original file line number Diff line number Diff line change 5454 "phpstan/phpstan-phpunit" : " ^2.0.8" ,
5555 "phpunit/phpunit" : " ^10.5.58" ,
5656 "rector/rector" : " ^2.2.8" ,
57- "symfony/cache" : " ^6.4||^7.0"
57+ "symfony/cache" : " ^6.4||^7.0" ,
58+ "symfony/var-exporter" : " ^6.4||^7.0"
5859 },
5960 "suggest" : {
6061 "php" : " ^8.4" ,
Original file line number Diff line number Diff line change 44
55namespace MartinGeorgiev \Doctrine \DBAL \Types ;
66
7- use Doctrine \DBAL \Types \ConversionException ;
87use MartinGeorgiev \Doctrine \DBAL \Types \Exceptions \InvalidGeographyForPHPException ;
98
109/**
@@ -21,12 +20,12 @@ protected function transformArrayItemForPostgres(mixed $item): string
2120 return (string ) $ this ->getValidatedArrayItem ($ item );
2221 }
2322
24- protected function createInvalidTypeExceptionForPHP (mixed $ item ): ConversionException
23+ protected function createInvalidTypeExceptionForPHP (mixed $ item ): InvalidGeographyForPHPException
2524 {
2625 return InvalidGeographyForPHPException::forInvalidType ($ item );
2726 }
2827
29- protected function createInvalidFormatExceptionForPHP (mixed $ item ): ConversionException
28+ protected function createInvalidFormatExceptionForPHP (mixed $ item ): InvalidGeographyForPHPException
3029 {
3130 return InvalidGeographyForPHPException::forInvalidFormat ($ item );
3231 }
Original file line number Diff line number Diff line change 44
55namespace MartinGeorgiev \Doctrine \DBAL \Types ;
66
7- use Doctrine \DBAL \Types \ConversionException ;
87use MartinGeorgiev \Doctrine \DBAL \Types \Exceptions \InvalidGeometryForPHPException ;
98
109/**
@@ -21,12 +20,12 @@ protected function transformArrayItemForPostgres(mixed $item): string
2120 return (string ) $ this ->getValidatedArrayItem ($ item );
2221 }
2322
24- protected function createInvalidTypeExceptionForPHP (mixed $ item ): ConversionException
23+ protected function createInvalidTypeExceptionForPHP (mixed $ item ): InvalidGeometryForPHPException
2524 {
2625 return InvalidGeometryForPHPException::forInvalidType ($ item );
2726 }
2827
29- protected function createInvalidFormatExceptionForPHP (mixed $ item ): ConversionException
28+ protected function createInvalidFormatExceptionForPHP (mixed $ item ): InvalidGeometryForPHPException
3029 {
3130 return InvalidGeometryForPHPException::forInvalidFormat ($ item );
3231 }
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ public static function provideInvalidPHPValuesForDatabaseTransformation(): array
152152 #[Test]
153153 public function can_transform_object_with_to_string_method (): void
154154 {
155- $ object = new class {
155+ $ object = new class implements \Stringable {
156156 public function __toString (): string
157157 {
158158 return 'object string representation ' ;
@@ -199,7 +199,7 @@ public function can_transform_mixed_types_in_array(): void
199199 1.5 ,
200200 true ,
201201 null ,
202- new class {
202+ new class implements \Stringable {
203203 public function __toString (): string
204204 {
205205 return 'object ' ;
You can’t perform that action at this time.
0 commit comments