diff --git a/.cspell-project-words.txt b/.cspell-project-words.txt new file mode 100644 index 0000000000000000000000000000000000000000..5909999e547d2594ed923c89b137844825cbadcb --- /dev/null +++ b/.cspell-project-words.txt @@ -0,0 +1,10 @@ +claudiu +cristea +grumphp +mailhog +normalise +normalised +nuvole +phpstorm +traefik +wodby diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..2bb92e3e9566ae83cf6008e1365b3d23453d1c34 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,15 @@ +include: + - project: $_GITLAB_TEMPLATES_REPO + ref: $_GITLAB_TEMPLATES_REF + file: + - '/includes/include.drupalci.main.yml' + - '/includes/include.drupalci.variables.yml' + - '/includes/include.drupalci.workflows.yml' +variables: + _SHOW_ENVIRONMENT_VARIABLES: 1 + _PHPUNIT_CONCURRENT: 1 + OPT_IN_TEST_CURRENT: 0 + OPT_IN_TEST_PREVIOUS_MAJOR: 1 + OPT_IN_TEST_PREVIOUS_MINOR: 0 + OPT_IN_TEST_NEXT_MINOR: 0 + OPT_IN_TEST_MAX_PHP: 0 diff --git a/drupalci.yml b/drupalci.yml deleted file mode 100644 index 8b0c3b66a40925d8c4c93d959af2845cc4ab36df..0000000000000000000000000000000000000000 --- a/drupalci.yml +++ /dev/null @@ -1,30 +0,0 @@ -build: - assessment: - validate_codebase: - phplint: - halt-on-fail: true - phpcs: - sniff-all-files: false - halt-on-fail: true - testing: -# run_tests.phpunit: -# types: 'PHPUnit-Unit' -# testgroups: '--all' -# suppress-deprecations: true -# halt-on-fail: false - run_tests.kernel: - types: 'PHPUnit-Kernel' - testgroups: '--all' - suppress-deprecations: true - halt-on-fail: false - run_tests.functional: - types: 'PHPUnit-Functional' - testgroups: '--all' - suppress-deprecations: true - halt-on-fail: false -# run_tests.javascript: -# concurrency: 15 -# types: 'PHPUnit-FunctionalJavascript' -# testgroups: '--all' -# suppress-deprecations: true -# halt-on-fail: false diff --git a/src/FileLinkQueueItem.php b/src/FileLinkQueueItem.php index eb62c46010e06c7a6d1a489f48c22d6098e43e08..f3e1589c6f85728895eb16f002ca8a1257a65ba2 100644 --- a/src/FileLinkQueueItem.php +++ b/src/FileLinkQueueItem.php @@ -58,7 +58,7 @@ final class FileLinkQueueItem { * @param int|null $time * The timestamp. */ - public function __construct(string $type, int $id, string $lang = Language::LANGCODE_NOT_SPECIFIED, int $revisionId = NULL, int $time = NULL) { + public function __construct(string $type, int $id, string $lang = Language::LANGCODE_NOT_SPECIFIED, ?int $revisionId = NULL, ?int $time = NULL) { $this->type = $type; $this->id = $id; $this->lang = $lang;