Skip to content

some random fixes #126

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

Closed
wants to merge 2 commits into from
Closed

Conversation

lsmith77
Copy link
Contributor

not sure about the PhpDumper, but at least the tests still pass with this change.

@@ -235,7 +235,6 @@ EOF;
if ($processed->contains($sDefinition)) {
continue;
}
$processed->offsetSet($sDefinition);
Copy link
Member

Choose a reason for hiding this comment

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

This change will break things as the $processed object is not populated with processed definition anymore.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok .. in that case we probably want to pass 1 as a second parameter. from my reading the docs second parameter isnt optional. while it appears that its currently working without a parameter, this might change due to discrepancy with the docs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok .. i talked to the maintainer. he said the docs should be fixed. though he suggested to use http://php.net/manual/en/splobjectstorage.attach.php instead

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yet more information:
[11:53] offsetSet is in fact an alias of attach, and offsetUnset an alias of detach, but it feels more natural to me to use attach/detach
[11:53] or: $objectStorage[$obj] = 2; / unset($objectStorage[$obj]); directly

@lsmith77
Copy link
Contributor Author

lsmith77 commented Mar 8, 2011

ok closing this one in favor of #200

dont really care of we go with http://php.net/manual/en/splobjectstorage.attach.php instead of offsetSet().

SofHad pushed a commit to SofHad/symfony that referenced this pull request Oct 12, 2015
…ons (andesk)

This PR was squashed before being merged into the master branch (closes symfony#126).

Discussion
----------

Adding missing german translation file for validations

Commits
-------

c4284ca Adding missing german translation file for validations
jderusse pushed a commit to jderusse/symfony that referenced this pull request Mar 30, 2020
This PR was squashed before being merged into the master branch (closes symfony#128).

Discussion
----------

Check any Composer repository

This is an attempt to implement symfony#127 (and would allow symfony#126 to pass). I haven't used the `ComposerRepository` class before, but couldn't see a simple way to consistently find out if a repository knew a particular package name, so it's doing a search then cycling through the results.

Commits
-------

0cfad5a Check any Composer repository
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants