Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Finder] Update RealIteratorTestCase #27508

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 19, 2018
Merged

Conversation

flip111
Copy link
Contributor

@flip111 flip111 commented Jun 5, 2018

Q A
Branch? 2.8
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #27480
License MIT
Doc PR n/a

Makes the entire test directory empty instead of trying to delete particular files and directories. The old method failed when trying to remove a directory which was not empty.

if (DIRECTORY_SEPARATOR === $file[strlen($file) - 1]) {
@rmdir($file);
$paths = new \RecursiveIteratorIterator(
new \RecursiveDirectoryIterator(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use 4 spaces indentation

} else {
@unlink($file);
unlink($path);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest to keep the silencing operators (and add it above)

@nicolas-grekas nicolas-grekas added this to the 2.8 milestone Jun 7, 2018
@nicolas-grekas nicolas-grekas changed the title Update RealIteratorTestCase.php [Finder] Update RealIteratorTestCase Jun 7, 2018
@flip111
Copy link
Contributor Author

flip111 commented Jun 8, 2018

My current patch is based on master, should i open a new PR on 2.8 or what should i do about this?

@xabbuh xabbuh added the Finder label Jun 8, 2018
gautierderuette and others added 4 commits June 19, 2018 10:02
…tierderuette)

This PR was submitted for the 3.4 branch but it was merged into the 2.8 branch instead (closes symfony#27630).

Discussion
----------

[Validator][Form] Remove BOM in some xlf files

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   |
| Fixed tickets | #...
| License       | MIT
| Doc PR        | symfony/symfony-docs#...

I removed first blank space from some xml files

It caused this error during cache:clear
[ERROR 4] Start tag expected, '<' not found (in n/a - line 1, column 1)

Commits
-------

0bc53d6 [Validator] Remove BOM in some xlf files
@nicolas-grekas nicolas-grekas changed the base branch from master to 2.8 June 19, 2018 11:05
@nicolas-grekas
Copy link
Member

Thank you @flip111.

@nicolas-grekas nicolas-grekas merged commit 7d0ebd4 into symfony:2.8 Jun 19, 2018
nicolas-grekas added a commit that referenced this pull request Jun 19, 2018
This PR was submitted for the master branch but it was squashed and merged into the 2.8 branch instead (closes #27508).

Discussion
----------

[Finder] Update RealIteratorTestCase

| Q             | A
| ------------- | ---
| Branch?       | 2.8
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #27480
| License       | MIT
| Doc PR        | n/a

Makes the entire test directory empty instead of trying to delete particular files and directories. The old method failed when trying to remove a directory which was not empty.

Commits
-------

7d0ebd4 [Finder] Update RealIteratorTestCase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants