Skip to content

Commit b21361c

Browse files
authored
Merge pull request #195 from phpDocumentor/ci-auto-detect-versions
[CI] upgrade ci workflow to detect php versions
2 parents 181f43a + d2fa18a commit b21361c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/integrate.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on: # yamllint disable-line rule:truthy
77
branches:
88
- "5.x"
99
pull_request: null
10+
schedule:
11+
- cron: '0 14 * * 1'
1012
# Allow manually triggering the workflow.
1113
workflow_dispatch: null
1214

@@ -44,7 +46,6 @@ jobs:
4446

4547
unit-tests:
4648
name: "Unit test"
47-
uses: "phpDocumentor/.github/.github/workflows/continues-integration.yml@v0.4.0"
49+
uses: "phpDocumentor/.github/.github/workflows/continuous-integration.yml@0.5.0"
4850
with:
4951
composer-root-version: "1.x-dev"
50-
php-versions: "['7.4', '8.0', '8.1', '8.2']"

src/Types/ContextFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
use const T_NAMESPACE;
4646
use const T_NS_SEPARATOR;
4747
use const T_STRING;
48+
use const T_TRAIT;
4849
use const T_USE;
4950

5051
if (!defined('T_NAME_QUALIFIED')) {

0 commit comments

Comments
 (0)