Skip to content

Commit b4bf6f5

Browse files
committed
chore: cleanup unused functions for debugging
1 parent 4c50349 commit b4bf6f5

38 files changed

Lines changed: 7 additions & 555 deletions

.github/workflows/tests.yml

Lines changed: 4 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ on:
77
jobs:
88
tests_linux:
99
name: PHP ${{ matrix.php }} Linux
10-
runs-on: ubuntu-22.04
11-
10+
runs-on: ubuntu
1211
strategy:
1312
matrix:
14-
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
13+
php: ['8.3', '8.4']
1514

1615
steps:
1716
- name: Checkout Code
@@ -27,49 +26,6 @@ jobs:
2726
- name: Setup Problem Matchers
2827
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
2928

30-
- name: Install PHP Dependencies
31-
uses: nick-invision/retry@v2
32-
with:
33-
timeout_minutes: 5
34-
max_attempts: 5
35-
command: composer update --no-interaction --no-progress
36-
37-
- name: Execute PHPUnit
38-
run: vendor/bin/phpunit
39-
40-
tests_windows:
41-
name: PHP ${{ matrix.php }} Windows
42-
runs-on: windows-2022
43-
44-
strategy:
45-
matrix:
46-
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
47-
48-
steps:
49-
- name: Configure Git
50-
run: |
51-
git config --global core.autocrlf false
52-
git config --global core.eol lf
53-
54-
- name: Checkout Code
55-
uses: actions/checkout@v4
56-
57-
- name: Setup PHP
58-
uses: shivammathur/setup-php@v2
59-
with:
60-
php-version: ${{ matrix.php }}
61-
tools: composer:snapshot
62-
coverage: none
63-
64-
- name: Setup Problem Matchers
65-
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
66-
67-
- name: Install PHP Dependencies
68-
uses: nick-invision/retry@v2
69-
with:
70-
timeout_minutes: 5
71-
max_attempts: 5
72-
command: composer update --no-interaction --no-progress
73-
29+
- uses: ramsey/composer-install@v3
7430
- name: Execute PHPUnit
75-
run: vendor\bin\phpunit.bat
31+
run: vendor/bin/phpunit

Makefile

Lines changed: 0 additions & 19 deletions
This file was deleted.

README.rst

Lines changed: 0 additions & 123 deletions
This file was deleted.

bin/jp.php

Lines changed: 0 additions & 74 deletions
This file was deleted.

bin/perf.php

Lines changed: 0 additions & 68 deletions
This file was deleted.

phpunit.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
colors="true"
66
failOnRisky="true"
77
failOnWarning="true"
8+
beStrictAboutCoverageMetadata="false"
89
cacheDirectory=".phpunit.cache"
910
>
1011
<testsuites>

src/NodeInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace JmesPathCommunity;
66

7-
interface NodeInterface extends \Stringable
7+
interface NodeInterface
88
{
99
public function evaluate(Context $context): array|string|null|float|bool|int|\Closure;
1010

src/Reader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace JmesPathCommunity;
66

7-
class Reader
7+
final class Reader
88
{
99
private int $position = 0;
1010
private readonly int $length;

src/node/AndExpression.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ public function evaluate(Context $context): array|string|null|float|bool|int
4242
return $left;
4343
}
4444

45-
public function __toString()
46-
{
47-
return "And({$this->left}, {$this->right})";
48-
}
49-
5045
public function toArray(): array
5146
{
5247
return [

0 commit comments

Comments
 (0)