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
6 changes: 3 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ concurrency:
jobs:

cs:
uses: phpalto/.github/.github/workflows/CS.yml@main
uses: altophp/.github/.github/workflows/CS.yml@main
# with:
# php-version: '8.5'
# composer-validate: true
# php-cs-fixer-args: '--diff --dry-run'

sa:
uses: phpalto/.github/.github/workflows/SA.yml@main
uses: altophp/.github/.github/workflows/SA.yml@main
# with:
# php-version: '8.5'
# phpstan-args: 'analyse --no-progress --memory-limit=-1'
Expand All @@ -34,7 +34,7 @@ jobs:
fail-fast: false
matrix:
php: ['8.3', '8.4', '8.5']
uses: phpalto/.github/.github/workflows/tests.yml@main
uses: altophp/.github/.github/workflows/tests.yml@main
with:
php-version: ${{ matrix.php }}
# phpunit-args: '--colors=never'
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ Built for systems where change history matters.

---

  [![PHP Version](https://img.shields.io/badge/PHP-8.3+-ffefdf?logoColor=white&labelColor=000)](https://github.com/PhpAlto/json-patch)
  [![CI](https://img.shields.io/github/actions/workflow/status/PhpAlto/json-patch/CI.yml?branch=main&label=Tests&logoColor=white&logoSize=auto&labelColor=000&color=ffefdf)](https://github.com/PhpAlto/json-patch/actions)
  [![PHP Version](https://img.shields.io/badge/PHP-8.3+-ffefdf?logoColor=white&labelColor=000)](https://github.com/altophp/json-patch)
  [![CI](https://img.shields.io/github/actions/workflow/status/altophp/json-patch/CI.yml?branch=main&label=Tests&logoColor=white&logoSize=auto&labelColor=000&color=ffefdf)](https://github.com/altophp/json-patch/actions)
  [![Packagist Version](https://img.shields.io/packagist/v/alto/json-patch?label=Stable&logoColor=white&logoSize=auto&labelColor=000&color=ffefdf)](https://packagist.org/packages/alto/json-patch)
  [![PHP Version](https://img.shields.io/badge/PHPUnit-100%25-ffefdf?logoColor=white&labelColor=000)](https://github.com/PhpAlto/json-patch)
  [![PHP Version](https://img.shields.io/badge/PHPStan-LVL%2010-ffefdf?logoColor=white&labelColor=000)](https://github.com/PhpAlto/json-patch)
  [![License](https://img.shields.io/github/license/PhpAlto/json-patch?label=License&logoColor=white&logoSize=auto&labelColor=000&color=ffefdf)](./LICENSE)
  [![PHP Version](https://img.shields.io/badge/PHPUnit-100%25-ffefdf?logoColor=white&labelColor=000)](https://github.com/altophp/json-patch)
  [![PHP Version](https://img.shields.io/badge/PHPStan-LVL%2010-ffefdf?logoColor=white&labelColor=000)](https://github.com/altophp/json-patch)
  [![License](https://img.shields.io/github/license/altophp/json-patch?label=License&logoColor=white&logoSize=auto&labelColor=000&color=ffefdf)](./LICENSE)

* **Pure PHP**: Tiny surface area, no heavy dependencies.
* **Strict Types**: Built for PHP 8.3+ with strict typing.
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
"email": "smn.andre@gmail.com"
}
],
"homepage": "https://github.com/phpalto/json-patch",
"homepage": "https://github.com/altophp/json-patch",
"support": {
"issues": "https://github.com/phpalto/json-patch/issues",
"docs": "https://github.com/phpalto/json-patch#readme"
"issues": "https://github.com/altophp/json-patch/issues",
"docs": "https://github.com/altophp/json-patch#readme"
},
"funding": [
{
Expand Down
2 changes: 1 addition & 1 deletion src/JsonPatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ private static function diffListByLcs(string $path, array $from, array $to, arra
// Element in $to but not in LCS - need to add
$addOps[] = ['index' => $j - 1, 'value' => $to[$j - 1]];
--$j;
} elseif ($i > 0 && (0 === $j || $lcs[$i][$j - 1] < $lcs[$i - 1][$j])) {
} elseif (0 === $j || $lcs[$i][$j - 1] < $lcs[$i - 1][$j]) {
// Element in $from but not in LCS - need to remove
$removeOps[] = ['index' => $i - 1];
--$i;
Expand Down
Loading