Skip to content
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

array of native types should not be namespaced #234

Closed
renanbr opened this issue Jun 15, 2015 · 0 comments · Fixed by #359
Closed

array of native types should not be namespaced #234

renanbr opened this issue Jun 15, 2015 · 0 comments · Fixed by #359
Labels

Comments

@renanbr
Copy link

renanbr commented Jun 15, 2015

That's it, and it occurs only for array signatures in namespaced class.

I didn't got this problem when I try with a non-namespaces class, for this case it works perfectly in dev-master branch.

Related to #232 #233


<?xml version="1.0" encoding="utf-8" ?>
<phpdox xmlns="http://xml.phpdox.net/config">
    <project name="Example" source="${basedir}/src" workdir="${basedir}/build">
        <collector backend="parser" />
    </project>
</phpdox>
<?php

namespace MyNamespace;

class ArrayCases
{
    /**
     * @var int[]
     */
    public $arrayOfInt;

    /**
     * @var boolean[]
     */
    public $arrayOfBoolean;

    /**
     * @var int
     */
    public $int;

    /**
     * @var boolean
     */
    public $boolean;
}
<?xml version="1.0" encoding="UTF-8"?>
<class xmlns="http://xml.phpdox.net/src" full="MyNamespace\ArrayCases" namespace="MyNamespace" name="ArrayCases" abstract="false" final="false" start="5" end="26">
  <file path="/tmp/arrayof/src" file="ArrayCases.php" realpath="/tmp/arrayof/src/ArrayCases.php" size="286" time="2015-06-15T08:17:07+00:00" unixtime="1434356227" sha1="868ec668080b0bb937f796bf9fef577b2d5276af" relative="ArrayCases.php"/>
  <member name="arrayOfInt" visibility="public" static="false" line="10">
    <docblock>
      <description/>
      <var type="array" of="object">
        <type full="MyNamespace\int" namespace="MyNamespace" name="int"/>
      </var>
    </docblock>
  </member>
  <member name="arrayOfBoolean" visibility="public" static="false" line="15">
    <docblock>
      <description/>
      <var type="array" of="object">
        <type full="MyNamespace\boolean" namespace="MyNamespace" name="boolean"/>
      </var>
    </docblock>
  </member>
  <member name="int" visibility="public" static="false" line="20">
    <docblock>
      <description/>
      <var type="int"/>
    </docblock>
  </member>
  <member name="boolean" visibility="public" static="false" line="25">
    <docblock>
      <description/>
      <var type="boolean"/>
    </docblock>
  </member>
</class>
@theseer theseer added the Bug label Jun 15, 2015
MacFJA added a commit to MacFJA/phpdox that referenced this issue Apr 28, 2019
- Handle correctly array of type
- Add test case (tests/data/issue234)
- Better handling of multiple type (piped '|')
- Update html rendering to display array in members definition

Fix theseer#234
MacFJA added a commit to MacFJA/phpdox that referenced this issue Apr 28, 2019
- Handle correctly array of type
- Add test case (tests/data/issue234)
- Better handling of multiple type (piped '|')
- Update html rendering to display array in members definition

Fix theseer#234
theseer pushed a commit that referenced this issue Apr 28, 2019
- Handle correctly array of type
- Add test case (tests/data/issue234)
- Better handling of multiple type (piped '|')
- Update html rendering to display array in members definition

Fix #234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants