Skip to content
Open
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
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"illuminate/support": "^10.0|^11.0|^12.0"
},
"require-dev": {
"laravel/pint": "^1.21",
"orchestra/testbench": "^3.6|^5.0|^6.0|^7.0|^8.0",
"phpunit/phpunit": "^9.5.8|^10.0.7"
},
Expand Down
3 changes: 1 addition & 2 deletions src/Events/CommentAdded.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ class CommentAdded implements ShouldDispatchAfterCommit
*/
public function __construct(
public Comment $comment,
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Events/CommentDeleted.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ class CommentDeleted implements ShouldDispatchAfterCommit
*/
public function __construct(
public Comment $comment,
) {
}
) {}
}
4 changes: 2 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

abstract class TestCase extends \Orchestra\Testbench\TestCase
{
public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->loadLaravelMigrations(['--database' => 'sqlite']);
Expand Down Expand Up @@ -39,7 +39,7 @@ protected function setUpDatabase()
{
include_once __DIR__.'/../database/migrations/create_comments_table.php.stub';

(new \CreateCommentsTable())->up();
(new \CreateCommentsTable)->up();

$this->app['db']->connection()->getSchemaBuilder()->create('posts', function (Blueprint $table) {
$table->increments('id');
Expand Down