File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -45,11 +45,10 @@ public function test_it_can_alter_a_table_definition(): void
45454646 );
4747 } catch (QueryWasInvalid $ queryWasInvalid ) {
48- $ message = match ($ this ->container ->get (DatabaseConfig::class)? ->dialect) {
48+ $ message = match ($ this ->container ->get (DatabaseConfig::class)->dialect ) {
4949 DatabaseDialect::MYSQL => "Unknown column 'email' " ,
5050 DatabaseDialect::SQLITE => 'table users has no column named email ' ,
5151 DatabaseDialect::POSTGRESQL => 'column "email" of relation "users" does not exist ' ,
52- null => throw new RuntimeException ('No database dialect available ' ),
5352 };
5453
5554 $ this ->assertStringContainsString ($ message , $ queryWasInvalid ->getMessage ());
Original file line number Diff line number Diff line change @@ -67,12 +67,12 @@ public function up(): QueryStatement
6767 }
6868 };
6969
70- $ dialect = $ this ->container ->get (DatabaseConfig::class)?->dialect;
70+ $ dialect = $ this ->container ->get (DatabaseConfig::class)->dialect ;
71+
7172 match ($ dialect ) {
7273 DatabaseDialect::MYSQL => $ this ->expectNotToPerformAssertions (),
7374 DatabaseDialect::SQLITE => $ this ->expectException (DialectWasNotSupported::class),
7475 DatabaseDialect::POSTGRESQL => $ this ->expectException (DialectWasNotSupported::class),
75- null => throw new RuntimeException ('No database dialect available ' ),
7676 };
7777
7878 $ this ->migrate (
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ public function test_it_caches_icons_on_the_first_render(): void
9191 $ this ->render ('<x-icon name="ph:eye" /> ' );
9292
9393 $ iconCache = $ this ->container ->get (IconCache::class);
94- $ cachedIcon = $ iconCache? ->get('icon-ph-eye ' );
94+ $ cachedIcon = $ iconCache ->get ('icon-ph-eye ' );
9595
9696 $ this ->assertNotNull ($ cachedIcon );
9797 $ this ->assertSame ('<svg></svg> ' , $ cachedIcon );
You can’t perform that action at this time.
0 commit comments