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
Out ot the box usage in combination with composer of all rules failes throws error Property $exceptions does not exist. #80
Comments
and info on what is causing this? i have the same problem. |
@DannyvdSluijs Is this still an issue? Also it's not wise to fetch |
Will try to find some time for this tomorrow. |
We recently started experiencing this exact problem after the update to 2.2.1. Reverting to 2.2.0 makes the problem go away. It seems to be limited to something within the naming.xml file, which when disabled, eliminates the "exceptions" message. If I compared correctly, it seems there was one change to the naming.xml file in the 2.2 release. Was there maybe an inadvertent BC break? <?xml version="1.0" encoding="UTF-8"?>
<ruleset name="PHPMD settings"
xmlns="http://pmd.sf.net/ruleset/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0
http://pmd.sf.net/ruleset_xml_schema.xsd"
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
<description>PHPMD rules for ZF2</description>
<rule ref="rulesets/codesize.xml"/>
<rule ref="rulesets/design.xml"/>
<rule ref="rulesets/unusedcode.xml"/>
<rule ref="rulesets/naming.xml">
<exclude name="ShortVariable" />
<exclude name="LongVariable" />
<exclude name="BooleanGetMethodName" />
</rule>
</ruleset> |
@cstrosser please create a separate issue next time, even if it could be related. Those are the relevant changes between 2.2.0 and 2.2.1: Not sure why it is complaining about a missing $exceptions though. May be it does not at some other place @manuelpichler ? |
Looks like the OutOfBoundsException wasn't imported. (EDIT: appears fixed in master branch) |
True, could you test it with the current master? |
Tested against master, and can confirm no exception is thrown. |
Many thanks. @manuelpichler is there something that blocks a patch release? |
@ravage84 No, a patch release seems to be valid here. |
When having composer.json with
And build.xml with
And running the command
The following output is shown:
Buildfile: /var/www/bob/build.xml phpmd: [exec] Property $exceptions does not exist. [exec] Result: 1 BUILD SUCCESSFUL
The text was updated successfully, but these errors were encountered: