Skip to content
Merged
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/vendor/
/vendor/
/.idea/
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This project contains a Code Sniffer Standard for Totara Learn.

## Prerequisites

* PHP 7.4 or higher
* PHP 7.4 or higher (including PHP 8.4 and 8.5)
* Composer (https://getcomposer.org/)

***
Expand Down Expand Up @@ -118,8 +118,8 @@ The Totara standard does include the PHPCompatibility standard as well to check
By default the PHPCompatibility rules will check only the PHP version you are running the phpcs command on. To choose a specific version to check either set the version on the console

```
# to run all the checks for PHP 7.1, PHP 7.2 and PHP 7.3
/path/to/phpcs --runtime-set testVersion 7.1-7.3 ...
# to run all the checks for PHP 8.4 and PHP 8.5
/path/to/phpcs --runtime-set testVersion 8.4-8.5 ...
```
or have a "testVersion" configuration option in your phpcs.xml file.

Expand Down Expand Up @@ -151,4 +151,4 @@ vendor/bin/phpunit

There is also a pre-commit hook for git to run Code Sniffer on commit.

Check out the [instructions](git-hook) on how to use it.
Check out the [instructions](git-hook) on how to use it.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
],
"prefer-stable" : true,
"require": {
"squizlabs/php_codesniffer": "3.*",
"exussum12/coverage-checker": "*",
"phpcompatibility/php-compatibility": "*",
"php": ">=5.6.0",
"squizlabs/php_codesniffer": "^4.0.1",
"exussum12/coverage-checker": "1.1.1",
"phpcompatibility/php-compatibility": "10.0.0-alpha2",
"php": ">=7.4",
"dealerdirect/phpcodesniffer-composer-installer": "^1.1"
},
"require-dev": {
Expand Down
Loading