Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Removed duplicate class declarations #857

Merged
merged 4 commits into from
Feb 28, 2012
Merged

Removed duplicate class declarations #857

merged 4 commits into from
Feb 28, 2012

Conversation

pavelkouril
Copy link
Contributor

When trying to generate API for Zend Framework 2 with ApiGen (http://apigen.org) -- which is very strict and hates multiple class declaration), I've encountered a strange thing in zf2.

Root.php and Replace.php were both having the same class name in their namespace.
So I've renamed class Replace in Root.php to Root, according to PSR-0 standard.

EDIT: Found all bad declarations and fixed them according to PSR-0 or common sense.

I've tried to run tests with "phpunit Zend/Markup/Renderer" and it went "OK (6 tests, 13 assertions)", so I guess this isn't BC break. :)

akrabat added a commit that referenced this pull request Feb 28, 2012
@akrabat akrabat merged commit 10d6f53 into zendframework:master Feb 28, 2012
@akrabat
Copy link
Contributor

akrabat commented Feb 28, 2012

Thanks Pavel, really appreciate it.

@zfbot zfbot mentioned this pull request Sep 28, 2012
gianarb pushed a commit to zendframework/zend-xmlrpc that referenced this pull request May 15, 2015
…ix-multiple-class-declarations

Removed duplicate class declarations
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants