Skip to content

Commit

Permalink
Do not display the modifier for free standing functions
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsismate committed Oct 23, 2020
1 parent f8b2d2b commit cee1ea6
Show file tree
Hide file tree
Showing 43 changed files with 46 additions and 42 deletions.
4 changes: 4 additions & 0 deletions build/gen_stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,10 @@ public function isInstanceMethod(): bool
/** @return string[] */
public function getModifierNames(): array
{
if (!$this->isMethod()) {
return [];
}

$result = [];

if ($this->flags & Class_::MODIFIER_FINAL) {
Expand Down
2 changes: 1 addition & 1 deletion ext/bcmath/methodsynopses/bcadd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- bcadd -->
<methodsynopsis>
<modifier>public</modifier><type>string</type><methodname>bcadd</methodname>
<type>string</type><methodname>bcadd</methodname>
<methodparam><type>string</type><parameter>num1</parameter></methodparam>
<methodparam><type>string</type><parameter>num2</parameter></methodparam>
<methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>scale</parameter><initializer>&null;</initializer></methodparam>
Expand Down
2 changes: 1 addition & 1 deletion ext/bcmath/methodsynopses/bccomp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- bccomp -->
<methodsynopsis>
<modifier>public</modifier><type>int</type><methodname>bccomp</methodname>
<type>int</type><methodname>bccomp</methodname>
<methodparam><type>string</type><parameter>num1</parameter></methodparam>
<methodparam><type>string</type><parameter>num2</parameter></methodparam>
<methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>scale</parameter><initializer>&null;</initializer></methodparam>
Expand Down
2 changes: 1 addition & 1 deletion ext/bcmath/methodsynopses/bcdiv.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- bcdiv -->
<methodsynopsis>
<modifier>public</modifier><type>string</type><methodname>bcdiv</methodname>
<type>string</type><methodname>bcdiv</methodname>
<methodparam><type>string</type><parameter>num1</parameter></methodparam>
<methodparam><type>string</type><parameter>num2</parameter></methodparam>
<methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>scale</parameter><initializer>&null;</initializer></methodparam>
Expand Down
2 changes: 1 addition & 1 deletion ext/bcmath/methodsynopses/bcmod.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- bcmod -->
<methodsynopsis>
<modifier>public</modifier><type>string</type><methodname>bcmod</methodname>
<type>string</type><methodname>bcmod</methodname>
<methodparam><type>string</type><parameter>num1</parameter></methodparam>
<methodparam><type>string</type><parameter>num2</parameter></methodparam>
<methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>scale</parameter><initializer>&null;</initializer></methodparam>
Expand Down
2 changes: 1 addition & 1 deletion ext/bcmath/methodsynopses/bcmul.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- bcmul -->
<methodsynopsis>
<modifier>public</modifier><type>string</type><methodname>bcmul</methodname>
<type>string</type><methodname>bcmul</methodname>
<methodparam><type>string</type><parameter>num1</parameter></methodparam>
<methodparam><type>string</type><parameter>num2</parameter></methodparam>
<methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>scale</parameter><initializer>&null;</initializer></methodparam>
Expand Down
2 changes: 1 addition & 1 deletion ext/bcmath/methodsynopses/bcpow.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- bcpow -->
<methodsynopsis>
<modifier>public</modifier><type>string</type><methodname>bcpow</methodname>
<type>string</type><methodname>bcpow</methodname>
<methodparam><type>string</type><parameter>num</parameter></methodparam>
<methodparam><type>string</type><parameter>exponent</parameter></methodparam>
<methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>scale</parameter><initializer>&null;</initializer></methodparam>
Expand Down
2 changes: 1 addition & 1 deletion ext/bcmath/methodsynopses/bcpowmod.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- bcpowmod -->
<methodsynopsis>
<modifier>public</modifier><type>string</type><methodname>bcpowmod</methodname>
<type>string</type><methodname>bcpowmod</methodname>
<methodparam><type>string</type><parameter>num</parameter></methodparam>
<methodparam><type>string</type><parameter>exponent</parameter></methodparam>
<methodparam><type>string</type><parameter>modulus</parameter></methodparam>
Expand Down
2 changes: 1 addition & 1 deletion ext/bcmath/methodsynopses/bcscale.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- bcscale -->
<methodsynopsis>
<modifier>public</modifier><type>int</type><methodname>bcscale</methodname>
<type>int</type><methodname>bcscale</methodname>
<methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>scale</parameter><initializer>&null;</initializer></methodparam>
</methodsynopsis>

Expand Down
2 changes: 1 addition & 1 deletion ext/bcmath/methodsynopses/bcsqrt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- bcsqrt -->
<methodsynopsis>
<modifier>public</modifier><type>string</type><methodname>bcsqrt</methodname>
<type>string</type><methodname>bcsqrt</methodname>
<methodparam><type>string</type><parameter>num</parameter></methodparam>
<methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>scale</parameter><initializer>&null;</initializer></methodparam>
</methodsynopsis>
Expand Down
2 changes: 1 addition & 1 deletion ext/bcmath/methodsynopses/bcsub.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- bcsub -->
<methodsynopsis>
<modifier>public</modifier><type>string</type><methodname>bcsub</methodname>
<type>string</type><methodname>bcsub</methodname>
<methodparam><type>string</type><parameter>num1</parameter></methodparam>
<methodparam><type>string</type><parameter>num2</parameter></methodparam>
<methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>scale</parameter><initializer>&null;</initializer></methodparam>
Expand Down
2 changes: 1 addition & 1 deletion ext/ctype/methodsynopses/ctype_alnum.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- ctype_alnum -->
<methodsynopsis>
<modifier>public</modifier><type>bool</type><methodname>ctype_alnum</methodname>
<type>bool</type><methodname>ctype_alnum</methodname>
<methodparam><type>mixed</type><parameter>text</parameter></methodparam>
</methodsynopsis>

Expand Down
2 changes: 1 addition & 1 deletion ext/ctype/methodsynopses/ctype_alpha.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- ctype_alpha -->
<methodsynopsis>
<modifier>public</modifier><type>bool</type><methodname>ctype_alpha</methodname>
<type>bool</type><methodname>ctype_alpha</methodname>
<methodparam><type>mixed</type><parameter>text</parameter></methodparam>
</methodsynopsis>

Expand Down
2 changes: 1 addition & 1 deletion ext/ctype/methodsynopses/ctype_cntrl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- ctype_cntrl -->
<methodsynopsis>
<modifier>public</modifier><type>bool</type><methodname>ctype_cntrl</methodname>
<type>bool</type><methodname>ctype_cntrl</methodname>
<methodparam><type>mixed</type><parameter>text</parameter></methodparam>
</methodsynopsis>

Expand Down
2 changes: 1 addition & 1 deletion ext/ctype/methodsynopses/ctype_digit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- ctype_digit -->
<methodsynopsis>
<modifier>public</modifier><type>bool</type><methodname>ctype_digit</methodname>
<type>bool</type><methodname>ctype_digit</methodname>
<methodparam><type>mixed</type><parameter>text</parameter></methodparam>
</methodsynopsis>

Expand Down
2 changes: 1 addition & 1 deletion ext/ctype/methodsynopses/ctype_graph.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- ctype_graph -->
<methodsynopsis>
<modifier>public</modifier><type>bool</type><methodname>ctype_graph</methodname>
<type>bool</type><methodname>ctype_graph</methodname>
<methodparam><type>mixed</type><parameter>text</parameter></methodparam>
</methodsynopsis>

Expand Down
2 changes: 1 addition & 1 deletion ext/ctype/methodsynopses/ctype_lower.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- ctype_lower -->
<methodsynopsis>
<modifier>public</modifier><type>bool</type><methodname>ctype_lower</methodname>
<type>bool</type><methodname>ctype_lower</methodname>
<methodparam><type>mixed</type><parameter>text</parameter></methodparam>
</methodsynopsis>

Expand Down
2 changes: 1 addition & 1 deletion ext/ctype/methodsynopses/ctype_print.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- ctype_print -->
<methodsynopsis>
<modifier>public</modifier><type>bool</type><methodname>ctype_print</methodname>
<type>bool</type><methodname>ctype_print</methodname>
<methodparam><type>mixed</type><parameter>text</parameter></methodparam>
</methodsynopsis>

Expand Down
2 changes: 1 addition & 1 deletion ext/ctype/methodsynopses/ctype_punct.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- ctype_punct -->
<methodsynopsis>
<modifier>public</modifier><type>bool</type><methodname>ctype_punct</methodname>
<type>bool</type><methodname>ctype_punct</methodname>
<methodparam><type>mixed</type><parameter>text</parameter></methodparam>
</methodsynopsis>

Expand Down
2 changes: 1 addition & 1 deletion ext/ctype/methodsynopses/ctype_space.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- ctype_space -->
<methodsynopsis>
<modifier>public</modifier><type>bool</type><methodname>ctype_space</methodname>
<type>bool</type><methodname>ctype_space</methodname>
<methodparam><type>mixed</type><parameter>text</parameter></methodparam>
</methodsynopsis>

Expand Down
2 changes: 1 addition & 1 deletion ext/ctype/methodsynopses/ctype_upper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- ctype_upper -->
<methodsynopsis>
<modifier>public</modifier><type>bool</type><methodname>ctype_upper</methodname>
<type>bool</type><methodname>ctype_upper</methodname>
<methodparam><type>mixed</type><parameter>text</parameter></methodparam>
</methodsynopsis>

Expand Down
2 changes: 1 addition & 1 deletion ext/ctype/methodsynopses/ctype_xdigit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- ctype_xdigit -->
<methodsynopsis>
<modifier>public</modifier><type>bool</type><methodname>ctype_xdigit</methodname>
<type>bool</type><methodname>ctype_xdigit</methodname>
<methodparam><type>mixed</type><parameter>text</parameter></methodparam>
</methodsynopsis>

Expand Down
2 changes: 1 addition & 1 deletion ext/dba/methodsynopses/dba_close.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- dba_close -->
<methodsynopsis>
<modifier>public</modifier><type>void</type><methodname>dba_close</methodname>
<type>void</type><methodname>dba_close</methodname>
<methodparam><type>resource</type><parameter>dba</parameter></methodparam>
</methodsynopsis>

Expand Down
2 changes: 1 addition & 1 deletion ext/dba/methodsynopses/dba_delete.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- dba_delete -->
<methodsynopsis>
<modifier>public</modifier><type>bool</type><methodname>dba_delete</methodname>
<type>bool</type><methodname>dba_delete</methodname>
<methodparam><type class="union"><type>string</type><type>array</type></type><parameter>key</parameter></methodparam>
<methodparam><type>resource</type><parameter>dba</parameter></methodparam>
</methodsynopsis>
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/methodsynopses/dba_exists.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- dba_exists -->
<methodsynopsis>
<modifier>public</modifier><type>bool</type><methodname>dba_exists</methodname>
<type>bool</type><methodname>dba_exists</methodname>
<methodparam><type class="union"><type>string</type><type>array</type></type><parameter>key</parameter></methodparam>
<methodparam><type>resource</type><parameter>dba</parameter></methodparam>
</methodsynopsis>
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/methodsynopses/dba_fetch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- dba_fetch -->
<methodsynopsis>
<modifier>public</modifier><type class="union"><type>string</type><type>false</type></type><methodname>dba_fetch</methodname>
<type class="union"><type>string</type><type>false</type></type><methodname>dba_fetch</methodname>
<methodparam><type class="union"><type>string</type><type>array</type></type><parameter>key</parameter></methodparam>
<methodparam><type class="union"><type>int</type><type>resource</type></type><parameter>skip</parameter></methodparam>
<methodparam choice="opt"><type>resource</type><parameter>dba</parameter></methodparam>
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/methodsynopses/dba_firstkey.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- dba_firstkey -->
<methodsynopsis>
<modifier>public</modifier><type class="union"><type>string</type><type>false</type></type><methodname>dba_firstkey</methodname>
<type class="union"><type>string</type><type>false</type></type><methodname>dba_firstkey</methodname>
<methodparam><type>resource</type><parameter>dba</parameter></methodparam>
</methodsynopsis>

Expand Down
2 changes: 1 addition & 1 deletion ext/dba/methodsynopses/dba_handlers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- dba_handlers -->
<methodsynopsis>
<modifier>public</modifier><type>array</type><methodname>dba_handlers</methodname>
<type>array</type><methodname>dba_handlers</methodname>
<methodparam choice="opt"><type>bool</type><parameter>full_info</parameter><initializer>&false;</initializer></methodparam>
</methodsynopsis>

Expand Down
2 changes: 1 addition & 1 deletion ext/dba/methodsynopses/dba_insert.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- dba_insert -->
<methodsynopsis>
<modifier>public</modifier><type>bool</type><methodname>dba_insert</methodname>
<type>bool</type><methodname>dba_insert</methodname>
<methodparam><type class="union"><type>string</type><type>array</type></type><parameter>key</parameter></methodparam>
<methodparam><type>string</type><parameter>value</parameter></methodparam>
<methodparam><type>resource</type><parameter>dba</parameter></methodparam>
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/methodsynopses/dba_key_split.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- dba_key_split -->
<methodsynopsis>
<modifier>public</modifier><type class="union"><type>array</type><type>false</type></type><methodname>dba_key_split</methodname>
<type class="union"><type>array</type><type>false</type></type><methodname>dba_key_split</methodname>
<methodparam><type class="union"><type>string</type><type>false</type><type>null</type></type><parameter>key</parameter></methodparam>
</methodsynopsis>

Expand Down
2 changes: 1 addition & 1 deletion ext/dba/methodsynopses/dba_list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- dba_list -->
<methodsynopsis>
<modifier>public</modifier><type>array</type><methodname>dba_list</methodname>
<type>array</type><methodname>dba_list</methodname>
<void/>
</methodsynopsis>

Expand Down
2 changes: 1 addition & 1 deletion ext/dba/methodsynopses/dba_nextkey.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- dba_nextkey -->
<methodsynopsis>
<modifier>public</modifier><type class="union"><type>string</type><type>false</type></type><methodname>dba_nextkey</methodname>
<type class="union"><type>string</type><type>false</type></type><methodname>dba_nextkey</methodname>
<methodparam><type>resource</type><parameter>dba</parameter></methodparam>
</methodsynopsis>

Expand Down
2 changes: 1 addition & 1 deletion ext/dba/methodsynopses/dba_open.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- dba_open -->
<methodsynopsis>
<modifier>public</modifier><type class="union"><type>resource</type><type>false</type></type><methodname>dba_open</methodname>
<type class="union"><type>resource</type><type>false</type></type><methodname>dba_open</methodname>
<methodparam><type>string</type><parameter>path</parameter></methodparam>
<methodparam><type>string</type><parameter>mode</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>handler</parameter></methodparam>
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/methodsynopses/dba_optimize.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- dba_optimize -->
<methodsynopsis>
<modifier>public</modifier><type>bool</type><methodname>dba_optimize</methodname>
<type>bool</type><methodname>dba_optimize</methodname>
<methodparam><type>resource</type><parameter>dba</parameter></methodparam>
</methodsynopsis>

Expand Down
2 changes: 1 addition & 1 deletion ext/dba/methodsynopses/dba_popen.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- dba_popen -->
<methodsynopsis>
<modifier>public</modifier><type class="union"><type>resource</type><type>false</type></type><methodname>dba_popen</methodname>
<type class="union"><type>resource</type><type>false</type></type><methodname>dba_popen</methodname>
<methodparam><type>string</type><parameter>path</parameter></methodparam>
<methodparam><type>string</type><parameter>mode</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>handler</parameter></methodparam>
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/methodsynopses/dba_replace.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- dba_replace -->
<methodsynopsis>
<modifier>public</modifier><type>bool</type><methodname>dba_replace</methodname>
<type>bool</type><methodname>dba_replace</methodname>
<methodparam><type class="union"><type>string</type><type>array</type></type><parameter>key</parameter></methodparam>
<methodparam><type>string</type><parameter>value</parameter></methodparam>
<methodparam><type>resource</type><parameter>dba</parameter></methodparam>
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/methodsynopses/dba_sync.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- dba_sync -->
<methodsynopsis>
<modifier>public</modifier><type>bool</type><methodname>dba_sync</methodname>
<type>bool</type><methodname>dba_sync</methodname>
<methodparam><type>resource</type><parameter>dba</parameter></methodparam>
</methodsynopsis>

Expand Down
2 changes: 1 addition & 1 deletion ext/json/methodsynopses/json_decode.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- json_decode -->
<methodsynopsis>
<modifier>public</modifier><type>mixed</type><methodname>json_decode</methodname>
<type>mixed</type><methodname>json_decode</methodname>
<methodparam><type>string</type><parameter>json</parameter></methodparam>
<methodparam choice="opt"><type class="union"><type>bool</type><type>null</type></type><parameter>associative</parameter><initializer>&null;</initializer></methodparam>
<methodparam choice="opt"><type>int</type><parameter>depth</parameter><initializer>512</initializer></methodparam>
Expand Down
2 changes: 1 addition & 1 deletion ext/json/methodsynopses/json_encode.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- json_encode -->
<methodsynopsis>
<modifier>public</modifier><type class="union"><type>string</type><type>false</type></type><methodname>json_encode</methodname>
<type class="union"><type>string</type><type>false</type></type><methodname>json_encode</methodname>
<methodparam><type>mixed</type><parameter>value</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>0</initializer></methodparam>
<methodparam choice="opt"><type>int</type><parameter>depth</parameter><initializer>512</initializer></methodparam>
Expand Down
2 changes: 1 addition & 1 deletion ext/json/methodsynopses/json_last_error.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- json_last_error -->
<methodsynopsis>
<modifier>public</modifier><type>int</type><methodname>json_last_error</methodname>
<type>int</type><methodname>json_last_error</methodname>
<void/>
</methodsynopsis>

Expand Down
2 changes: 1 addition & 1 deletion ext/json/methodsynopses/json_last_error_msg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- json_last_error_msg -->
<methodsynopsis>
<modifier>public</modifier><type>string</type><methodname>json_last_error_msg</methodname>
<type>string</type><methodname>json_last_error_msg</methodname>
<void/>
</methodsynopsis>

Expand Down
2 changes: 1 addition & 1 deletion ext/tokenizer/methodsynopses/token_get_all.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- token_get_all -->
<methodsynopsis>
<modifier>public</modifier><type>array</type><methodname>token_get_all</methodname>
<type>array</type><methodname>token_get_all</methodname>
<methodparam><type>string</type><parameter>code</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>0</initializer></methodparam>
</methodsynopsis>
Expand Down
2 changes: 1 addition & 1 deletion ext/tokenizer/methodsynopses/token_name.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- token_name -->
<methodsynopsis>
<modifier>public</modifier><type>string</type><methodname>token_name</methodname>
<type>string</type><methodname>token_name</methodname>
<methodparam><type>int</type><parameter>id</parameter></methodparam>
</methodsynopsis>

Expand Down

0 comments on commit cee1ea6

Please sign in to comment.