File tree Expand file tree Collapse file tree 9 files changed +31
-4
lines changed Expand file tree Collapse file tree 9 files changed +31
-4
lines changed Original file line number Diff line number Diff line change 1616 - 7.4
1717 - 8.0
1818 - 8.1
19+ - 8.2
1920
2021 steps :
2122 - uses : actions/checkout@v2
3940 - run : composer run test
4041
4142 - run : composer run lint -- --dry-run
43+ if : ${{ matrix.php <= '8.0' }}
Original file line number Diff line number Diff line change 1313 "doctrine/orm" : " ^2.7"
1414 },
1515 "require-dev" : {
16+ "doctrine/cache" : " ^1.11" ,
1617 "friendsofphp/php-cs-fixer" : " ^2.14" ,
1718 "nesbot/carbon" : " *" ,
1819 "phpunit/phpunit" : " ^7.0 || ^8.0 || ^9.0" ,
Original file line number Diff line number Diff line change 1010 */
1111class CharLength extends FunctionNode
1212{
13- private $ expr ;
13+ private $ expr1 ;
1414
1515 public function getSql (\Doctrine \ORM \Query \SqlWalker $ sqlWalker ): string
1616 {
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ class Power extends FunctionNode
99{
1010 public $ arithmeticExpression ;
1111
12+ public $ power ;
13+
1214 public function getSql (\Doctrine \ORM \Query \SqlWalker $ sqlWalker ): string
1315 {
1416 return 'POWER( ' . $ this ->arithmeticExpression ->dispatch ($ sqlWalker ) . ', '
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker): string
6363 // Iterate over the captured expressions and add them to the query.
6464 for ($ i = 1 ; $ i < count ($ this ->values ); $ i ++) {
6565 if ($ i > 1 ) {
66- $ queryBuilder [] = " || ' $ { separator}' || " ;
66+ $ queryBuilder [] = " || ' { $ separator }' || " ;
6767 }
6868
6969 // Dispatch the walker on the current node.
Original file line number Diff line number Diff line change @@ -33,4 +33,24 @@ class CarbonDate
3333 * @Column(type="CarbonTime", nullable=true)
3434 */
3535 public $ time ;
36+
37+ /**
38+ * @Column(type="CarbonImmutableDate", nullable=true)
39+ */
40+ public $ date_immutable ;
41+
42+ /**
43+ * @Column(type="CarbonImmutableDateTime", nullable=true)
44+ */
45+ public $ datetime_immutable ;
46+
47+ /**
48+ * @Column(type="CarbonImmutableDateTimeTz", nullable=true)
49+ */
50+ public $ datetime_tz_immutable ;
51+
52+ /**
53+ * @Column(type="CarbonImmutableTime", nullable=true)
54+ */
55+ public $ time_immutable ;
3656}
Original file line number Diff line number Diff line change 44
55class TrigTest extends \DoctrineExtensions \Tests \Query \MysqlTestCase
66{
7+ private $ entity ;
8+
79 public function setUp (): void
810 {
911 parent ::setUp ();
Original file line number Diff line number Diff line change 1616 */
1717class CarbonDateTest extends TestCase
1818{
19- public $ entityManager = null ;
19+ private $ em ;
2020
2121 public static function setUpBeforeClass (): void
2222 {
Original file line number Diff line number Diff line change 1212 */
1313class ZendDateTest extends TestCase
1414{
15- public $ entityManager = null ;
15+ private $ em ;
1616
1717 public static function setUpBeforeClass (): void
1818 {
You can’t perform that action at this time.
0 commit comments