Skip to content

Commit

Permalink
[Travis] update phan version to 3.0 and fix the phan issues (aces#7101)
Browse files Browse the repository at this point in the history
Upgrade phan and fix issues so that composer 2.0 can be used with our composer.lock file.
  • Loading branch information
kongtiaowang authored and AlexandraLivadas committed Jun 29, 2021
1 parent a65cd54 commit 901cf25
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"phan/phan": "^2.4",
"phpmd/phpmd": "~2.8",
"phpstan/phpstan": "0.12.17",
"slevomat/coding-standard": "^6.0"
"slevomat/coding-standard": "^6.0",
"php-webdriver/webdriver" : "dev-main"

},
"scripts": {
"pre-install-cmd": "mkdir -p project/libraries"
Expand Down
13 changes: 10 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions modules/issue_tracker/php/uploadhelper.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ class UploadHelper
/**
* Setup uploading configurations.
*
* @param object $user The user uploading.
* @param array $files The $_FILES array content.
* @param array $values The post message array content.
* @param \User $user The user uploading.
* @param array $files The $_FILES array content.
* @param array $values The post message array content.
*
* @return array (success|error) with a message for the frontend.
*/
Expand Down
1 change: 1 addition & 0 deletions php/libraries/NDB_BVL_Instrument_LINST.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ class NDB_BVL_Instrument_LINST extends \NDB_BVL_Instrument
}
if (!empty($this->XINRules[$elname])) {
$registered_rules = $this->XINRules[$elname];
'@phan-var array $registered_rules';
if ($this->XINDebug) {
//debugging code
echo "<p><b>$elname</b><br> ";
Expand Down

0 comments on commit 901cf25

Please sign in to comment.