Skip to content

Commit

Permalink
Merge pull request #43 from angelej/update-dependencies
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
angelej authored May 22, 2024
2 parents e6553a1 + 43804d1 commit 36a8432
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/code-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on: [push, pull_request]
jobs:
phpstan:
runs-on: ubuntu-latest
name: PHP 8.1 - ubuntu-latest
name: PHP 8.2 - ubuntu-latest

steps:
- name: Checkout code
Expand All @@ -15,7 +15,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.2
extensions: tokenizer

- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [8.2, 8.1]
php: [8.3, 8.2]

name: PHP ${{ matrix.php }} - ${{ matrix.os }}

Expand Down
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
FROM alpine:3.18.3
FROM alpine:3.19

RUN adduser -H -D insider insider

RUN apk add \
php81-cli \
php81-dom \
php81-simplexml \
php81-tokenizer \
php81-xml \
php81-xmlwriter \
composer=2.5.8-r0
php82-cli \
php82-dom \
php82-simplexml \
php82-tokenizer \
php82-xml \
php82-xmlwriter \
composer=2.7.6-r0

USER insider:insider
WORKDIR /srv/php-insider
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
}
],
"require": {
"php": "^8.1.0",
"nikic/php-parser": "^4.16",
"symfony/console": "^6.3",
"nunomaduro/termwind": "^1.15"
"php": "^8.2",
"nikic/php-parser": "^5.0.2",
"symfony/console": "^7.0.7",
"nunomaduro/termwind": "^2.0.1"
},
"require-dev": {
"pestphp/pest": "^2.9",
"phpstan/phpstan": "^1.10"
"pestphp/pest": "^2.34.7",
"phpstan/phpstan": "^1.11.1"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/Analyser.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Analyser {

public function __construct(){

$this->parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7);
$this->parser = (new ParserFactory())->createForNewestSupportedVersion();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Location.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function getPathname(): string {
*/
public function getLine(): int {

return $this->node->getLine();
return $this->node->getStartLine();
}

/**
Expand Down

0 comments on commit 36a8432

Please sign in to comment.