Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: laravel/pint
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.20.0
Choose a base ref
...
head repository: laravel/pint
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 3 commits
  • 8 files changed
  • 3 contributors

Commits on Jan 14, 2025

  1. Update CHANGELOG

    nunomaduro authored and github-actions[bot] committed Jan 14, 2025
    Copy the full SHA
    f606d0b View commit details

Commits on Jan 16, 2025

  1. Add no_unneeded_import_alias rule (#334)

    claudiodekker authored Jan 16, 2025
    Copy the full SHA
    df4438b View commit details

Commits on Jan 21, 2025

  1. Php 84 support (#330)

    * Upgrade to laravel-zero/framework v11
    
    * Fix QA
    
    * Change php support matrix
    
    * Execute phpstan on latest php version
    
    * Add typehint to repository
    markwalet authored Jan 21, 2025
    Copy the full SHA
    0c31559 View commit details
Showing with 1,298 additions and 604 deletions.
  1. +2 −2 .github/workflows/tests.yml
  2. +5 −1 CHANGELOG.md
  3. +1 −1 app/Factories/ConfigurationFactory.php
  4. +1 −0 app/Repositories/GitPathsRepository.php
  5. +2 −2 app/ValueObjects/Issue.php
  6. +6 −6 composer.json
  7. +1,280 −592 composer.lock
  8. +1 −0 resources/presets/laravel.php
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-22.04, windows-2019]
php: [8.1, 8.2, 8.3]
php: [8.2, 8.3, 8.4]

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

@@ -54,7 +54,7 @@ jobs:

- name: Execute static analysis
run: vendor/bin/phpstan
if: matrix.php == '8.1'
if: matrix.php == '8.4'

- name: Execute unit/feature tests
run: vendor/bin/pest
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Release Notes

## [Unreleased](https://github.com/laravel/pint/compare/v1.19.0...main)
## [Unreleased](https://github.com/laravel/pint/compare/v1.20.0...main)

## [v1.20.0](https://github.com/laravel/pint/compare/v1.19.0...v1.20.0) - 2025-01-14

* Adds `--diff` option. https://github.com/laravel/pint/pull/327

## [v1.19.0](https://github.com/laravel/pint/compare/v1.18.3...v1.19.0) - 2024-12-30

2 changes: 1 addition & 1 deletion app/Factories/ConfigurationFactory.php
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ class ConfigurationFactory
/**
* Creates a PHP CS Fixer Configuration with the given array of rules.
*
* @param array<string, array<string, array<int|string, string|null>|bool|string>|bool> $rules
* @param array<string, array<string, array<int|string, string|int|string[]>|bool|string>|bool> $rules
* @return \PhpCsFixer\ConfigInterface
*/
public static function preset($rules)
1 change: 1 addition & 0 deletions app/Repositories/GitPathsRepository.php
Original file line number Diff line number Diff line change
@@ -59,6 +59,7 @@ public function diff($branch)
'untracked' => tap(new Process(['git', 'ls-files', '--others', '--exclude-standard', '--', '**.php']))->run(),
];

/** @var Collection<int, string> $files */
$files = collect($files)
->each(fn ($process) => abort_if(
boolean: ! $process->isSuccessful(),
4 changes: 2 additions & 2 deletions app/ValueObjects/Issue.php
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ class Issue
* @param string $path
* @param string $file
* @param string $symbol
* @param array<string, array<int, string>|\Throwable> $payload
* @param array<string, list<string>|string|\Throwable> $payload
*/
public function __construct(
protected $path,
@@ -93,7 +93,7 @@ public function symbol()
/**
* Returns the issue's diff, if any.
*
* @return string|null
* @return string|void
*/
protected function diff()
{
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -16,19 +16,19 @@
}
],
"require": {
"php": "^8.1.0",
"php": "^8.2.0",
"ext-json": "*",
"ext-mbstring": "*",
"ext-tokenizer": "*",
"ext-xml": "*"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.66.0",
"illuminate/view": "^10.48.25",
"larastan/larastan": "^2.9.12",
"laravel-zero/framework": "^10.48.25",
"illuminate/view": "^11.36.1",
"larastan/larastan": "^3.0",
"laravel-zero/framework": "^11.36.1",
"mockery/mockery": "^1.6.12",
"nunomaduro/termwind": "^1.17.0",
"nunomaduro/termwind": "^2.0",
"pestphp/pest": "^2.36.0"
},
"autoload": {
@@ -49,7 +49,7 @@
"sort-packages": true,
"optimize-autoloader": true,
"platform": {
"php": "8.1.0"
"php": "8.2.0"
},
"allow-plugins": {
"pestphp/pest-plugin": true
1,872 changes: 1,280 additions & 592 deletions composer.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions resources/presets/laravel.php
Original file line number Diff line number Diff line change
@@ -127,6 +127,7 @@
'statements' => ['break', 'clone', 'continue', 'echo_print', 'return', 'switch_case', 'yield'],
],
'no_unneeded_braces' => true,
'no_unneeded_import_alias' => true,
'no_unreachable_default_argument_value' => true,
'no_unset_cast' => true,
'no_unused_imports' => true,