@@ -205,7 +205,7 @@ <h3 id="functions"><a class="header" href="#functions">Functions</a></h3>
205205< p > < strong > Supported < code > #[php]</ code > attributes:</ strong > </ p >
206206< ul >
207207< li > < code > #[php(name = "NEW_NAME")]</ code > - Renames the function</ li >
208- < li > < code > #[php(rename = case)]</ code > - Changes the case of the function name</ li >
208+ < li > < code > #[php(change_case = case)]</ code > - Changes the case of the function name</ li >
209209< li > < code > #[php(vis = "public")]</ code > - Changes the visibility of the function</ li >
210210< li > < code > #[php(defaults(a = 5, test = 100))]</ code > - Sets default values for function arguments</ li >
211211< li > < code > #[php(variadic)]</ code > - Marks the function as variadic. The last argument must be a < code > &[&Zval]</ code > </ li >
@@ -259,16 +259,16 @@ <h3 id="classes"><a class="header" href="#classes">Classes</a></h3>
259259< p > < strong > Supported < code > #[php]</ code > attributes (< code > struct</ code > ):</ strong > </ p >
260260< ul >
261261< li > < code > #[php(name = "NEW_NAME")]</ code > - Renames the class</ li >
262- < li > < code > #[php(rename = case)]</ code > - Changes the case of the class name</ li >
262+ < li > < code > #[php(change_case = case)]</ code > - Changes the case of the class name</ li >
263263< li > < code > #[php(vis = "public")]</ code > - Changes the visibility of the class</ li >
264264< li > < code > #[php(extends(ce = ce_fn, stub = "ParentClass")]</ code > - Extends a parent class</ li >
265265< li > < code > #[php(implements(ce = ce_fn, stub = "Interface"))]</ code > - Implements an interface</ li >
266266< li > < code > #[php(prop)]</ code > - Marks a field as a property</ li >
267267</ ul >
268268< p > < strong > Supported < code > #[php]</ code > attributes (< code > impl</ code > ):</ strong > </ p >
269269< ul >
270- < li > < code > #[php(rename_consts = case)]</ code > - Changes the case of the constant names. Can be overridden by attributes on the constants.</ li >
271- < li > < code > #[php(rename_methods = case)]</ code > - Changes the case of the method names. Can be overridden by attributes on the methods.</ li >
270+ < li > < code > #[php(change_constant_case = case)]</ code > - Changes the case of the constant names. Can be overridden by attributes on the constants.</ li >
271+ < li > < code > #[php(change_method_case = case)]</ code > - Changes the case of the method names. Can be overridden by attributes on the methods.</ li >
272272</ ul >
273273< p > For elements in the < code > #[php_impl]</ code > block see the respective function and constant attributes.</ p >
274274< h4 id ="extends-and-implements "> < a class ="header " href ="#extends-and-implements "> Extends and Implements</ a > </ h4 >
@@ -298,7 +298,7 @@ <h3 id="constants"><a class="header" href="#constants">Constants</a></h3>
298298< p > < strong > Supported < code > #[php]</ code > attributes:</ strong > </ p >
299299< ul >
300300< li > < code > #[php(name = "NEW_NAME")]</ code > - Renames the constant</ li >
301- < li > < code > #[php(rename = case)]</ code > - Changes the case of the constant name</ li >
301+ < li > < code > #[php(change_case = case)]</ code > - Changes the case of the constant name</ li >
302302< li > < code > #[php(vis = "public")]</ code > - Changes the visibility of the constant</ li >
303303</ ul >
304304< h3 id ="extern "> < a class ="header " href ="#extern "> Extern</ a > </ h3 >
@@ -334,10 +334,10 @@ <h3 id="php-attributes"><a class="header" href="#php-attributes"><code>#[php]</c
334334< p > Attributes like < code > #[rename]</ code > or < code > #[prop]</ code > have been moved to the < code > #[php]</ code > attribute.</ p >
335335< p > The < code > #[php]</ code > attribute on an item are combined with each other. This means that
336336the following variants are equivalent:</ p >
337- < pre > < code class ="language-rs "> #[php(rename = case)]
337+ < pre > < code class ="language-rs "> #[php(change_case = case)]
338338#[php(vis = "public")]
339339</ code > </ pre >
340- < pre > < code class ="language-rs "> #[php(rename = case, vis = "public")]
340+ < pre > < code class ="language-rs "> #[php(change_case = case, vis = "public")]
341341</ code > </ pre >
342342< h3 id ="renaming-and-case-changes "> < a class ="header " href ="#renaming-and-case-changes "> Renaming and Case Changes</ a > </ h3 >
343343< p > Default case was adjusted to match PSR standards:</ p >
@@ -348,15 +348,15 @@ <h3 id="renaming-and-case-changes"><a class="header" href="#renaming-and-case-ch
348348< li > Constant names are now < code > UPPER_CASE</ code > </ li >
349349< li > Function names are now < code > snake_case</ code > </ li >
350350</ ul >
351- < p > This can be changed using the < code > rename </ code > attribute on the item.
352- Additionally, the < code > rename_methods </ code > and < code > rename_consts </ code > attributes can be used
351+ < p > This can be changed using the < code > change_case </ code > attribute on the item.
352+ Additionally, the < code > change_method_case </ code > and < code > change_constant_case </ code > attributes can be used
353353to change the case of all methods and constants in a class.</ p >
354- < h4 id ="name-vs-rename "> < a class ="header " href ="#name-vs-rename "> < code > name</ code > vs < code > rename </ code > </ a > </ h4 >
354+ < h4 id ="name-vs-change_case "> < a class ="header " href ="#name-vs-change_case "> < code > name</ code > vs < code > change_case </ code > </ a > </ h4 >
355355< p > Previously the (re)name parameter was used to rename items. This has been
356356unified to use < code > name</ code > to set the name of an item to a string literal. The
357- < code > rename </ code > parameter is now used to change the case of the name.</ p >
357+ < code > change_case </ code > parameter is now used to change the case of the name.</ p >
358358< pre > < code class ="language-rs "> #[php(name = "NEW_NAME")]
359- #[php(rename = snake_case)]]
359+ #[php(change_case = snake_case)]]
360360</ code > </ pre >
361361< p > Available cases are:</ p >
362362< ul >
0 commit comments