Skip to content

Commit 56e44d7

Browse files
authored
[TASK] Reduce PHPStan tests (#50)
Switch local development to PHP 8.1 and explicitly define PHP version for PHPStan to 7.2. Also superfluous tests in CI are removed.
1 parent a31154e commit 56e44d7

3 files changed

Lines changed: 39 additions & 9 deletions

File tree

.ddev/config.yaml

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: typo3-coding-standards
22
type: php
33
docroot: ""
4-
php_version: "7.2"
4+
php_version: "8.1"
55
webserver_type: nginx-fpm
66
router_http_port: "80"
77
router_https_port: "443"
@@ -73,11 +73,14 @@ nodejs_version: "16"
7373
# commands are executed.
7474

7575
# composer_version: "2"
76-
# if composer_version:"2" it will use the most recent composer v2
77-
# It can also be set to "1", to get most recent composer v1
78-
# or "" for the default v2 created at release time.
79-
# It can be set to any existing specific composer version.
80-
# After first project 'ddev start' this will not be updated until it changes
76+
# You can set it to "" or "2" (default) for Composer v2 or "1" for Composer v1
77+
# to use the latest major version available at the time your container is built.
78+
# It is also possible to select a minor version for example "2.2" which will
79+
# install the latest release of that branch. Alternatively, an explicit Composer
80+
# version may be specified, for example "1.0.22". Finally, it is also possible
81+
# to use one of the key words "stable", "preview" or "snapshot" see Composer
82+
# documentation.
83+
# To reinstall Composer after the image was built, run "ddev debug refresh".
8184

8285
# nodejs_version: "16"
8386
# change from the default system Node.js version to another supported version, like 12, 14, 17, 18.
@@ -98,6 +101,8 @@ nodejs_version: "16"
98101

99102
# upload_dir: custom/upload/dir
100103
# would set the destination path for ddev import-files to <docroot>/custom/upload/dir
104+
# When mutagen is enabled this path is bind-mounted so that all the files
105+
# in the upload_dir don't have to be synced into mutagen
101106

102107
# working_dir:
103108
# web: /var/www/html
@@ -204,6 +209,33 @@ nodejs_version: "16"
204209
# The default time that ddev waits for all containers to become ready can be increased from
205210
# the default 120. This helps in importing huge databases, for example.
206211

212+
#web_extra_exposed_ports:
213+
#- name: nodejs
214+
# container_port: 3000
215+
# http_port: 2999
216+
# https_port: 3000
217+
#- name: something
218+
# container_port: 4000
219+
# https_port: 4000
220+
# http_port: 3999
221+
# Allows a set of extra ports to be exposed via ddev-router
222+
# The port behavior on the ddev-webserver must be arranged separately, for example
223+
# using web_extra_daemons.
224+
# For example, with a web app on port 3000 inside the container, this config would
225+
# expose that web app on https://<project>.ddev.site:9999 and http://<project>.ddev.site:9998
226+
# web_extra_exposed_ports:
227+
# - container_port: 3000
228+
# http_port: 9998
229+
# https_port: 9999
230+
231+
#web_extra_daemons:
232+
#- name: "http-1"
233+
# command: "/var/www/html/node_modules/.bin/http-server -p 3000"
234+
# directory: /var/www/html
235+
#- name: "http-2"
236+
# command: "/var/www/html/node_modules/.bin/http-server /var/www/html/sub -p 3000"
237+
# directory: /var/www/html
238+
207239
# Many ddev commands can be extended to run tasks before or after the
208240
# ddev command is executed, for example "post-start", "post-import-db",
209241
# "pre-composer", "post-composer"

.github/workflows/continuous-integration.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,6 @@ jobs:
180180
matrix:
181181
php-version:
182182
- '7.2'
183-
- '7.3'
184-
- '7.4'
185-
- '8.0'
186183
- '8.1'
187184
- 'latest'
188185
dependencies:

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
parameters:
22
level: max
3+
phpVersion: 70200
34
treatPhpDocTypesAsCertain: false
45

56
paths:

0 commit comments

Comments
 (0)