Skip to content

Commit 38a63b0

Browse files
committed
Deploying to gh-pages from @ 660f308 🚀
1 parent 2cd5ed9 commit 38a63b0

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

migration-guides/v0.14.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,18 @@ <h3 id="php-attributes"><a class="header" href="#php-attributes"><code>#[php]</c
339339
</code></pre>
340340
<pre><code class="language-rs">#[php(rename = case, vis = "public")]
341341
</code></pre>
342+
<h3 id="renaming-and-case-changes"><a class="header" href="#renaming-and-case-changes">Renaming and Case Changes</a></h3>
343+
<p>Default case was adjusted to match PSR standards:</p>
344+
<ul>
345+
<li>Class names are now <code>PascalCase</code></li>
346+
<li>Property names are now <code>camelCase</code></li>
347+
<li>Method names are now <code>camelCase</code></li>
348+
<li>Constant names are now <code>UPPER_CASE</code></li>
349+
<li>Function names are now <code>snake_case</code></li>
350+
</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
353+
to change the case of all methods and constants in a class.</p>
342354
<h4 id="name-vs-rename"><a class="header" href="#name-vs-rename"><code>name</code> vs <code>rename</code></a></h4>
343355
<p>Previously the (re)name parameter was used to rename items. This has been
344356
unified to use <code>name</code> to set the name of an item to a string literal. The

print.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2330,6 +2330,18 @@ <h3 id="php-attributes-1"><a class="header" href="#php-attributes-1"><code>#[php
23302330
</code></pre>
23312331
<pre><code class="language-rs">#[php(rename = case, vis = "public")]
23322332
</code></pre>
2333+
<h3 id="renaming-and-case-changes"><a class="header" href="#renaming-and-case-changes">Renaming and Case Changes</a></h3>
2334+
<p>Default case was adjusted to match PSR standards:</p>
2335+
<ul>
2336+
<li>Class names are now <code>PascalCase</code></li>
2337+
<li>Property names are now <code>camelCase</code></li>
2338+
<li>Method names are now <code>camelCase</code></li>
2339+
<li>Constant names are now <code>UPPER_CASE</code></li>
2340+
<li>Function names are now <code>snake_case</code></li>
2341+
</ul>
2342+
<p>This can be changed using the <code>rename</code> attribute on the item.
2343+
Additionally, the <code>rename_methods</code> and <code>rename_consts</code> attributes can be used
2344+
to change the case of all methods and constants in a class.</p>
23332345
<h4 id="name-vs-rename"><a class="header" href="#name-vs-rename"><code>name</code> vs <code>rename</code></a></h4>
23342346
<p>Previously the (re)name parameter was used to rename items. This has been
23352347
unified to use <code>name</code> to set the name of an item to a string literal. The

searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)