Skip to content

Commit

Permalink
merge changes from attributes repo
Browse files Browse the repository at this point in the history
  • Loading branch information
isfedorov committed Oct 31, 2024
1 parent 600da0e commit 684cf1b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion meta/attributes/ArrayShape.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* Example: <br />
* <b>#[ArrayShape(["f" => "int", "string", "x" => "float"])]</b>
* This usage applied on an element effectively means that the array has 3 elements, the keys are "f", 1, and "x", and the corresponding types are "int", "string", and "float".
* This usage applied on an element effectively means that the array has 3 dimensions, the keys are "f", 1, and "x", and the corresponding types are "int", "string", and "float".
*/
#[Attribute(Attribute::TARGET_FUNCTION|Attribute::TARGET_METHOD|Attribute::TARGET_PARAMETER|Attribute::TARGET_PROPERTY)]
class ArrayShape
Expand Down
2 changes: 1 addition & 1 deletion meta/attributes/Deprecated.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Deprecated
* <li>%class%: If the attribute is provided for method "m", then for "$this->f()->m()", %class% will be "$this->f()"</li>
* </ul>
* The following example shows how to wrap a function call in another call and swap arguments:<br />
* "#[Deprecated(replacement: "wrappedCall(%name%(%parameter1%, %parameter0%))")] f($a, $b){}<br />
* "#[Deprecated(replaceWith: "wrappedCall(%name%(%parameter1%, %parameter0%))")] f($a, $b){}<br />
* f(1,2) will be replaced with wrappedCall(f(2,1))
* @param string $since Element is deprecated starting with the provided PHP language level, applicable only for PhpStorm stubs entries
*/
Expand Down
2 changes: 1 addition & 1 deletion meta/attributes/ExpectedValues.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* <li><b>#[ExpectedValues(values: MY_CONST]</b> - default value of MY_CONST is expected to be array creation expression, in this case value of MY_CONST will be inlined</li>
* <li><b>#[ExpectedValues(flags: [1,2,3])]</b> means that a bitmask of the following is expected: `1`, `2`, or `3`</li>
* <li><b>#[ExpectedValues(valuesFromClass: MyClass::class)]</b> means that one of the constants from the class `MyClass` is expected</li>
* <li><b>#[ExpectedValues(flagsFromClass: MyClass::class)]</b> means that a bitmask of the constants from the class `MyClass` is expected</li>
* <li><b>#[ExpectedValues(flagsFromClass: ExpectedValues::class)]</b> means that a bitmask of the constants from the class `MyClass` is expected</li>
* </ul>
*
* The attribute with the number of provided constructor arguments different from 1 will result in undefined behavior.
Expand Down
2 changes: 1 addition & 1 deletion meta/attributes/Pure.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
class Pure
{
/**
* @param bool $mayDependOnGlobalScope Whether the function result may be dependent on anything except passed variables
* @param bool $mayDependOnGlobalScope Whether the function result may be dependendent on anything except passed variables
*/
public function __construct(bool $mayDependOnGlobalScope = false) {}
}

0 comments on commit 684cf1b

Please sign in to comment.