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: sebastianbergmann/php-file-iterator
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3.0.5
Choose a base ref
...
head repository: sebastianbergmann/php-file-iterator
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3.0.6
Choose a head ref

Commits on Oct 15, 2020

  1. Update tools

    sebastianbergmann committed Oct 15, 2020
    Copy the full SHA
    8a1b0bf View commit details

Commits on Oct 24, 2020

  1. Update tools

    sebastianbergmann committed Oct 24, 2020
    Copy the full SHA
    af1a2b2 View commit details
  2. Bump

    sebastianbergmann committed Oct 24, 2020
    Copy the full SHA
    4376526 View commit details

Commits on Oct 25, 2020

  1. Update tools

    sebastianbergmann committed Oct 25, 2020
    Copy the full SHA
    9261b41 View commit details
  2. Update to Psalm 4

    sebastianbergmann committed Oct 25, 2020
    Copy the full SHA
    38cbba3 View commit details
  3. Copy the full SHA
    385204a View commit details

Commits on Oct 26, 2020

  1. Update tools

    sebastianbergmann committed Oct 26, 2020
    Copy the full SHA
    86daa94 View commit details

Commits on Oct 28, 2020

  1. Copy the full SHA
    2b85cdc View commit details

Commits on Oct 30, 2020

  1. Update tools

    sebastianbergmann committed Oct 30, 2020
    Copy the full SHA
    4375536 View commit details

Commits on Nov 4, 2020

  1. Update tools

    sebastianbergmann committed Nov 4, 2020
    Copy the full SHA
    32c4a90 View commit details

Commits on Nov 9, 2020

  1. Update tools

    sebastianbergmann committed Nov 9, 2020
    Copy the full SHA
    854c530 View commit details

Commits on Nov 14, 2020

  1. Update tools

    sebastianbergmann committed Nov 14, 2020
    Copy the full SHA
    7bbe5a5 View commit details

Commits on Nov 21, 2020

  1. Update tools

    sebastianbergmann committed Nov 21, 2020
    Copy the full SHA
    aa99914 View commit details

Commits on Nov 30, 2020

  1. Copy the full SHA
    4b49fb7 View commit details

Commits on Dec 5, 2020

  1. Update tools

    sebastianbergmann committed Dec 5, 2020
    Copy the full SHA
    bb7927a View commit details

Commits on Dec 8, 2020

  1. Update tools

    sebastianbergmann committed Dec 8, 2020
    Copy the full SHA
    c5c9af0 View commit details

Commits on Dec 9, 2020

  1. Update tools

    sebastianbergmann committed Dec 9, 2020
    Copy the full SHA
    32f330e View commit details

Commits on Dec 18, 2020

  1. Update tools

    sebastianbergmann committed Dec 18, 2020
    Copy the full SHA
    2095464 View commit details

Commits on Dec 24, 2020

  1. Update tools

    sebastianbergmann committed Dec 24, 2020
    Copy the full SHA
    544be75 View commit details

Commits on Jan 2, 2021

  1. Copy the full SHA
    cdb8225 View commit details

Commits on Jan 14, 2021

  1. Update tools

    sebastianbergmann committed Jan 14, 2021
    Copy the full SHA
    0837b6d View commit details

Commits on Jan 18, 2021

  1. Update tools

    sebastianbergmann committed Jan 18, 2021
    Copy the full SHA
    ec77a26 View commit details

Commits on Jan 23, 2021

  1. Update tools

    sebastianbergmann committed Jan 23, 2021
    Copy the full SHA
    d66b11b View commit details

Commits on Jan 27, 2021

  1. Update tools

    sebastianbergmann committed Jan 27, 2021
    Copy the full SHA
    42c07f0 View commit details

Commits on Jan 31, 2021

  1. Update tools

    sebastianbergmann committed Jan 31, 2021
    Copy the full SHA
    7643948 View commit details

Commits on Feb 14, 2021

  1. Update tools

    sebastianbergmann committed Feb 14, 2021
    Copy the full SHA
    05fa32d View commit details

Commits on Feb 21, 2021

  1. Update tools

    sebastianbergmann committed Feb 21, 2021
    Copy the full SHA
    499be26 View commit details

Commits on Feb 23, 2021

  1. Update tools

    sebastianbergmann committed Feb 23, 2021
    Copy the full SHA
    dae4259 View commit details

Commits on Mar 10, 2021

  1. Update tools

    sebastianbergmann committed Mar 10, 2021
    Copy the full SHA
    330949c View commit details

Commits on Mar 12, 2021

  1. Update tools

    sebastianbergmann committed Mar 12, 2021
    Copy the full SHA
    be176a7 View commit details

Commits on Mar 17, 2021

  1. Update tools

    sebastianbergmann committed Mar 17, 2021
    Copy the full SHA
    b2ce4cf View commit details

Commits on Apr 2, 2021

  1. Update tools

    sebastianbergmann committed Apr 2, 2021
    Copy the full SHA
    97eb187 View commit details

Commits on Apr 20, 2021

  1. Update tools

    sebastianbergmann committed Apr 20, 2021
    Copy the full SHA
    8e1b28f View commit details

Commits on Apr 27, 2021

  1. Update tools

    sebastianbergmann committed Apr 27, 2021
    Copy the full SHA
    85dd79e View commit details

Commits on May 4, 2021

  1. Copy the full SHA
    3d44bdc View commit details

Commits on Jul 19, 2021

  1. Add ReturnTypeWillChange attribute to SebastianBergmann\FileIterator\…

    …Iterator::accept() because the return type of \FilterIterator::accept() will change in PHP 8.1
    sebastianbergmann committed Jul 19, 2021
    Copy the full SHA
    1d83c07 View commit details
  2. Fix

    sebastianbergmann committed Jul 19, 2021
    Copy the full SHA
    28af674 View commit details

Commits on Jul 30, 2021

  1. Copy the full SHA
    575fbe4 View commit details
  2. Update tools

    sebastianbergmann committed Jul 30, 2021
    Copy the full SHA
    47f71e5 View commit details
  3. Copy the full SHA
    75266ec View commit details
  4. Copy the full SHA
    d7e633e View commit details

Commits on Dec 2, 2021

  1. Copy the full SHA
    4eb32f8 View commit details
  2. Prepare release

    sebastianbergmann committed Dec 2, 2021
    Copy the full SHA
    42c5ba5 View commit details
  3. Copy the full SHA
    1d8f5dc View commit details
  4. Prepare release

    sebastianbergmann committed Dec 2, 2021
    Copy the full SHA
    cf1c2e7 View commit details
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
/.gitignore export-ignore
/.github export-ignore
/.phive export-ignore
/.php_cs.dist export-ignore
/.php-cs-fixer.dist.php export-ignore
/build.xml export-ignore
/phpunit.xml export-ignore
/psalm.xml export-ignore
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ jobs:
coverage: none

- name: Run friendsofphp/php-cs-fixer
run: ./tools/php-cs-fixer fix --diff-format=udiff --dry-run --show-progress=dots --using-cache=no --verbose
run: ./tools/php-cs-fixer fix --dry-run --show-progress=dots --using-cache=no --verbose

type-checker:
name: Type Checker
@@ -44,7 +44,7 @@ jobs:
run: ./tools/composer update --no-interaction --no-ansi --no-progress

- name: Run vimeo/psalm
run: ./tools/psalm --no-progress --shepherd --show-info=false --stats
run: ./tools/psalm --config=.psalm/config.xml --no-progress --shepherd --show-info=false --stats

backward-compatibility:
name: Backward Compatibility
@@ -82,13 +82,14 @@ jobs:
- "7.3"
- "7.4"
- "8.0"
- "8.1"

steps:
- name: "Checkout"
uses: "actions/checkout@v2"

- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@v1"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
coverage: "pcov"
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/.idea
/vendor/
/.php_cs
/.php_cs.cache
/.php-cs-fixer.php
/.php-cs-fixer.cache
/composer.lock
/.phpunit.result.cache
5 changes: 3 additions & 2 deletions .phive/phars.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="php-cs-fixer" version="^2.16" installed="2.16.4" location="./tools/php-cs-fixer" copy="true"/>
<phar name="psalm" version="^3.11" installed="3.16.0" location="./tools/psalm" copy="true"/>
<phar name="php-cs-fixer" version="^3.0" installed="3.0.0" location="./tools/php-cs-fixer" copy="true"/>
<phar name="psalm" version="^4.0" installed="4.8.1" location="./tools/psalm" copy="true"/>
<phar name="roave/backwardcompatibilitycheck" version="^5.0.0" installed="5.0.0" location="./tools/roave-backward-compatibility-check" copy="true"/>
<phar name="composer" version="^2.0.3" installed="2.1.5" location="./tools/composer" copy="true"/>
</phive>
104 changes: 94 additions & 10 deletions .php_cs.dist → .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -11,19 +11,22 @@
$finder = PhpCsFixer\Finder::create()
->files()
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests');
->in(__DIR__ . '/tests')
;

return PhpCsFixer\Config::create()
->setFinder($finder)
$config = new PhpCsFixer\Config;
$config->setFinder($finder)
->setRiskyAllowed(true)
->setRules([
'align_multiline_comment' => true,
'array_indentation' => true,
'array_push' => true,
'array_syntax' => ['syntax' => 'short'],
'backtick_to_shell_exec' => true,
'binary_operator_spaces' => [
'operators' => [
'=' => 'align',
'=>' => 'align',
'=' => 'align_single_space_minimal',
'=>' => 'align_single_space_minimal',
],
],
'blank_line_after_namespace' => true,
@@ -32,9 +35,12 @@
'break',
'continue',
'declare',
'default',
'do',
'exit',
'for',
'foreach',
'goto',
'if',
'include',
'include_once',
@@ -50,47 +56,78 @@
],
'braces' => true,
'cast_spaces' => true,
'class_attributes_separation' => ['elements' => ['const', 'method', 'property']],
'class_attributes_separation' => [
'elements' => [
'const' => 'one',
'method' => 'one',
'property' => 'one'
]
],
'class_definition' => true,
'clean_namespace' => true,
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
'combine_nested_dirname' => true,
'compact_nullable_typehint' => true,
'concat_space' => ['spacing' => 'one'],
'constant_case' => true,
'declare_equal_normalize' => ['space' => 'none'],
'declare_strict_types' => true,
'dir_constant' => true,
'echo_tag_syntax' => true,
'elseif' => true,
'encoding' => true,
'ereg_to_preg' => true,
'explicit_indirect_variable' => true,
'explicit_string_variable' => true,
'fopen_flag_order' => true,
'full_opening_tag' => true,
'fully_qualified_strict_types' => true,
'function_declaration' => true,
'function_to_constant' => true,
'function_typehint_space' => true,
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => true,
'import_functions' => true,
],
'header_comment' => ['header' => $header, 'separate' => 'none'],
'heredoc_to_nowdoc' => true,
'implode_call' => true,
'include' => true,
'increment_style' => [
'style' => PhpCsFixer\Fixer\Operator\IncrementStyleFixer::STYLE_POST,
],
'indentation_type' => true,
'is_null' => true,
'lambda_not_used_import' => true,
'line_ending' => true,
'list_syntax' => ['syntax' => 'short'],
'logical_operators' => true,
'lowercase_cast' => true,
'lowercase_constants' => true,
'lowercase_keywords' => true,
'lowercase_static_reference' => true,
'magic_constant_casing' => true,
'method_argument_space' => ['ensure_fully_multiline' => true],
'magic_method_casing' => true,
'method_argument_space' => [
'on_multiline' => 'ensure_fully_multiline',
],
'modernize_types_casting' => true,
'multiline_comment_opening_closing' => true,
'multiline_whitespace_before_semicolons' => true,
'native_constant_invocation' => false,
'native_function_casing' => false,
'native_function_invocation' => false,
'native_function_type_declaration_casing' => true,
'new_with_braces' => false,
'no_alias_functions' => true,
'no_alias_language_construct_call' => true,
'no_alternative_syntax' => true,
'no_binary_string' => true,
'no_blank_lines_after_class_opening' => true,
'no_blank_lines_after_phpdoc' => true,
'no_blank_lines_before_namespace' => true,
'no_break_comment' => true,
'no_closing_tag' => true,
'no_empty_comment' => true,
'no_empty_phpdoc' => true,
@@ -104,9 +141,9 @@
'no_null_property_initialization' => true,
'no_php4_constructor' => true,
'no_short_bool_cast' => true,
'no_short_echo_tag' => true,
'no_singleline_whitespace_before_semicolons' => true,
'no_spaces_after_function_name' => true,
'no_spaces_around_offset' => true,
'no_spaces_inside_parenthesis' => true,
'no_superfluous_elseif' => true,
'no_superfluous_phpdoc_tags' => [
@@ -116,19 +153,26 @@
'no_trailing_comma_in_singleline_array' => true,
'no_trailing_whitespace' => true,
'no_trailing_whitespace_in_comment' => true,
'no_trailing_whitespace_in_string' => true,
'no_unneeded_control_parentheses' => true,
'no_unneeded_curly_braces' => true,
'no_unneeded_final_method' => true,
'no_unreachable_default_argument_value' => true,
'no_unset_cast' => true,
'no_unset_on_property' => true,
'no_unused_imports' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'no_useless_sprintf' => true,
'no_whitespace_before_comma_in_array' => true,
'no_whitespace_in_blank_line' => true,
'non_printable_character' => true,
'normalize_index_brace' => true,
'object_operator_without_whitespace' => true,
'operator_linebreak' => [
'only_booleans' => true,
'position' => 'end',
],
'ordered_class_elements' => [
'order' => [
'use_trait',
@@ -164,41 +208,79 @@
'direction' => 'ascend',
'order' => 'alpha',
],
'ordered_traits' => true,
'php_unit_set_up_tear_down_visibility' => true,
'php_unit_test_case_static_method_calls' => [
'call_type' => 'this',
],
'phpdoc_add_missing_param_annotation' => false,
'phpdoc_align' => true,
'phpdoc_annotation_without_dot' => true,
'phpdoc_indent' => true,
'phpdoc_inline_tag_normalizer' => true,
'phpdoc_no_access' => true,
'phpdoc_no_alias_tag' => true,
'phpdoc_no_empty_return' => true,
'phpdoc_no_package' => true,
'phpdoc_no_useless_inheritdoc' => true,
'phpdoc_order' => true,
'phpdoc_order_by_value' => [
'annotations' => [
'covers',
'dataProvider',
'throws',
'uses',
],
],
'phpdoc_return_self_reference' => true,
'phpdoc_scalar' => true,
'phpdoc_separation' => true,
'phpdoc_single_line_var_spacing' => true,
'phpdoc_summary' => true,
'phpdoc_tag_casing' => true,
'phpdoc_tag_type' => true,
'phpdoc_to_comment' => true,
'phpdoc_trim' => true,
'phpdoc_trim_consecutive_blank_line_separation' => true,
'phpdoc_types' => ['groups' => ['simple', 'meta']],
'phpdoc_types_order' => true,
'phpdoc_var_annotation_correct_order' => true,
'phpdoc_var_without_name' => true,
'pow_to_exponentiation' => true,
'protected_to_private' => true,
'return_assignment' => true,
'return_type_declaration' => ['space_before' => 'none'],
'self_accessor' => true,
'self_static_accessor' => true,
'semicolon_after_instruction' => true,
'set_type_to_cast' => true,
'short_scalar_cast' => true,
'simple_to_complex_string_variable' => true,
'simplified_null_return' => false,
'single_blank_line_at_eof' => true,
'single_class_element_per_statement' => true,
'single_import_per_statement' => true,
'single_line_after_imports' => true,
'single_quote' => true,
'single_space_after_construct' => true,
'single_trait_insert_per_statement' => true,
'space_after_semicolon' => true,
'standardize_increment' => true,
'standardize_not_equals' => true,
'static_lambda' => true,
'strict_param' => true,
'string_line_ending' => true,
'switch_case_semicolon_to_colon' => true,
'switch_case_space' => true,
'switch_continue_to_break' => true,
'ternary_operator_spaces' => true,
'ternary_to_elvis_operator' => true,
'ternary_to_null_coalescing' => true,
'trailing_comma_in_multiline_array' => true,
'trailing_comma_in_multiline' => [
'elements' => [
'arrays'
]
],
'trim_array_spaces' => true,
'unary_operator_spaces' => true,
'visibility_required' => [
@@ -211,3 +293,5 @@
'void_return' => true,
'whitespace_after_comma_in_array' => true,
]);

return $config;
8 changes: 8 additions & 0 deletions .psalm/baseline.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.x-dev@">
<file src="src/Iterator.php">
<UndefinedInterfaceMethod occurrences="1">
<code>current</code>
</UndefinedInterfaceMethod>
</file>
</files>
4 changes: 3 additions & 1 deletion psalm.xml → .psalm/config.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<?xml version="1.0"?>
<psalm
totallyTyped="false"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
resolveFromConfigFile="false"
totallyTyped="false"
errorBaseline=".psalm/baseline.xml"
>
<projectFiles>
<directory name="src" />
36 changes: 34 additions & 2 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).

## [3.0.6] - 2021-12-02

### Changed

* [#73](https://github.com/sebastianbergmann/php-file-iterator/pull/73): Micro performance improvements on parsing paths

## [3.0.5] - 2020-09-28

### Changed
@@ -38,6 +44,28 @@ All notable changes to this project will be documented in this file. This projec

* This component is no longer supported on PHP 7.1 and PHP 7.2

## [2.0.5] - 2021-12-02

### Changed

* [#73](https://github.com/sebastianbergmann/php-file-iterator/pull/73): Micro performance improvements on parsing paths

### Fixed

* [#74](https://github.com/sebastianbergmann/php-file-iterator/pull/74): Document return type of `SebastianBergmann\FileIterator\Iterator::accept()` so that Symfony's `DebugClassLoader` does not trigger a deprecation warning

## [2.0.4] - 2021-07-19

### Changed

* Added `ReturnTypeWillChange` attribute to `SebastianBergmann\FileIterator\Iterator::accept()` because the return type of `\FilterIterator::accept()` will change in PHP 8.1

## [2.0.3] - 2020-11-30

### Changed

* Changed PHP version constraint in `composer.json` from `^7.1` to `>=7.1`

## [2.0.2] - 2018-09-13

### Fixed
@@ -96,15 +124,19 @@ No changes

* [#23](https://github.com/sebastianbergmann/php-file-iterator/pull/23): Added support for wildcards (glob) in exclude

[3.0.6]: https://github.com/sebastianbergmann/php-file-iterator/compare/3.0.5...3.0.6
[3.0.5]: https://github.com/sebastianbergmann/php-file-iterator/compare/3.0.4...3.0.5
[3.0.4]: https://github.com/sebastianbergmann/php-file-iterator/compare/3.0.3...3.0.4
[3.0.3]: https://github.com/sebastianbergmann/php-file-iterator/compare/3.0.2...3.0.3
[3.0.2]: https://github.com/sebastianbergmann/php-file-iterator/compare/3.0.1...3.0.2
[3.0.1]: https://github.com/sebastianbergmann/php-file-iterator/compare/3.0.0...3.0.1
[3.0.0]: https://github.com/sebastianbergmann/php-file-iterator/compare/2.0.2...3.0.0
[3.0.0]: https://github.com/sebastianbergmann/php-file-iterator/compare/2.0.5...3.0.0
[2.0.5]: https://github.com/sebastianbergmann/php-file-iterator/compare/2.0.4...2.0.5
[2.0.4]: https://github.com/sebastianbergmann/php-file-iterator/compare/2.0.3...2.0.4
[2.0.3]: https://github.com/sebastianbergmann/php-file-iterator/compare/2.0.2...2.0.3
[2.0.2]: https://github.com/sebastianbergmann/php-file-iterator/compare/2.0.1...2.0.2
[2.0.1]: https://github.com/sebastianbergmann/php-file-iterator/compare/2.0.0...2.0.1
[2.0.0]: https://github.com/sebastianbergmann/php-file-iterator/compare/1.4...2.0.0
[2.0.0]: https://github.com/sebastianbergmann/php-file-iterator/compare/1.4.5...2.0.0
[1.4.5]: https://github.com/sebastianbergmann/php-file-iterator/compare/1.4.4...1.4.5
[1.4.4]: https://github.com/sebastianbergmann/php-file-iterator/compare/1.4.3...1.4.4
[1.4.3]: https://github.com/sebastianbergmann/php-file-iterator/compare/1.4.2...1.4.3
Loading