Passed
Push — master ( 3cb892...9356d0 )
by Peter
02:13
created

src/Databases/Migrations/Init.php (1 issue)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AbterPhp\Admin\Databases\Migrations;
6
7
use AbterPhp\Framework\Databases\Migrations\RawMigration;
0 ignored issues
show
The type AbterPhp\Framework\Datab...Migrations\RawMigration was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
use DateTime;
9
use Opulence\Databases\IConnection;
10
11
class Init extends RawMigration
12
{
13
    const FILENAME = 'admin.sql';
14
15
    /**
16
     * Gets the creation date, which is used for ordering
17
     *
18
     * @return DateTime The date this migration was created
19
     */
20
    public static function getCreationDate(): DateTime
21
    {
22
        return DateTime::createFromFormat(DateTime::ATOM, '2019-02-28T21:00:00+00:00');
23
    }
24
}
25