Skip to content

Commit

Permalink
Merge pull request #66 from laminas/renovate/lock-file-maintenance
Browse files Browse the repository at this point in the history
Add undeclared property to Laminas\Server\Reflection\Prototype
  • Loading branch information
Ocramius authored Dec 27, 2022
2 parents ce7c8c9 + adb8a84 commit 7f48629
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 25 deletions.
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
convertDeprecationsToExceptions="true"
colors="true">
<testsuites>
<testsuite name="laminas-server Test Suite">
Expand Down
19 changes: 3 additions & 16 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.21.0@d8bec4c7aaee111a532daec32fb09de5687053d1">
<files psalm-version="4.30.0@d0bc6e25d89f649e4f36a534f330f8bb4643dd69">
<file src="src/AbstractServer.php">
<ArgumentTypeCoercion occurrences="1">
<code>$class</code>
Expand Down Expand Up @@ -253,24 +253,11 @@
</UnsafeInstantiation>
</file>
<file src="src/Reflection/Prototype.php">
<MixedInferredReturnType occurrences="2">
<code>ReflectionReturnValue</code>
<code>string</code>
</MixedInferredReturnType>
<MixedMethodCall occurrences="1">
<code>getType</code>
</MixedMethodCall>
<MixedReturnStatement occurrences="2">
<code>$this-&gt;return</code>
<code>$this-&gt;return-&gt;getType()</code>
</MixedReturnStatement>
<UndefinedThisPropertyAssignment occurrences="1">
<DeprecatedProperty occurrences="3">
<code>$this-&gt;return</code>
</UndefinedThisPropertyAssignment>
<UndefinedThisPropertyFetch occurrences="2">
<code>$this-&gt;return</code>
<code>$this-&gt;return</code>
</UndefinedThisPropertyFetch>
</DeprecatedProperty>
</file>
<file src="src/Reflection/ReflectionClass.php">
<ArgumentTypeCoercion occurrences="1">
Expand Down
10 changes: 8 additions & 2 deletions src/Reflection/Prototype.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

namespace Laminas\Server\Reflection;

use Laminas\Server\Reflection\ReflectionReturnValue;

/**
* Method/Function prototypes
*
Expand All @@ -18,6 +16,14 @@ class Prototype
/** @var ReflectionParameter[] */
protected $params;

/**
* @deprecated This property was previously undeclared therefore it requires public access to maintain BC.
* It will be declared private in the next major version of this component.
*
* @var ReflectionReturnValue
*/
public $return;

/**
* Constructor
*
Expand Down

0 comments on commit 7f48629

Please sign in to comment.