Skip to content

Releases: Ocramius/ProxyManager

2.5.0

10 Aug 10:48
2.5.0
8eb0084
Compare
Choose a tag to compare

2.2.3

10 Aug 10:20
2.2.3
4d15474
Compare
Choose a tag to compare

This release fixes a bug in FileWriterGeneratorStrategy in which permissions were not correctly
placed on files written to disk, and also ensures that different $proxyOptions passed to the
various proxy factories lead to different proxy class names.

Total issues resolved: 4

2.4.0

03 Jun 23:11
2.4.0
7a133e8
Compare
Choose a tag to compare

Build Status

This release introduces vimeo/psalm and PHPStorm-specific type-declarations for all API endpoints that do not return simple scalar/object types.

Effectively, that means that following code will now be statically analysable by psalm and PHPStorm, which will know the exact type of $proxy:

class MyExample
{
    public function bar(int $parameter) : void {}
}

$proxyFactory
    ->createProxy(MyExample::class)
    ->bar('hello world!'); // this will be detected as a type mismatch

In practice, this means that most projects won't need to use explicit inline type-hints such as /** @var SomeClassName $proxy */, and the tooling will pick up these types implicitly.

Improvements were also applied to type declarations in generated code, autoloading (now switched to PSR-4) and null-check ?? operator usages.

Total issues resolved: 9

2.3.1

19 Mar 10:01
2.3.1
3be0722
Compare
Choose a tag to compare

Build Status

This release reverts a BC break that led to fatal errors when
attempting to load child classes of the proxy generators.

Total issues resolved: 2

2.3.0

16 Mar 20:27
2.3.0
10e0eb0
Compare
Choose a tag to compare

Build Status

This release introduces support for PHP 7.4 typed properties, and requires
a minimum PHP version of 7.4.0 to be installed.

In addition to that, multiple improvements have been done to prepare for
PHP 8 support, and to reduce the chance of regressions by using stricter
type checks, testing for mutations, and applying stricter coding style
rules.

Total issues resolved: 25

2.2.2

27 Sep 13:49
2.2.2
14b137b
Compare
Choose a tag to compare

This release fixes incorrect passing of variadic method
parameters to the RPC adapter used by the remote
object proxies.

Total issues resolved: 1

2.2.1

26 Aug 15:29
2.2.1
306da83
Compare
Choose a tag to compare

This release fixes a performance issue in the instantiation of proxies, which
led to new ReflectionClass instances being produced for every new instance
of a proxy.

Total issues resolved: 1

2.2.0

16 Nov 23:24
2.2.0
81d53b2
Compare
Choose a tag to compare

2.1.1

04 May 11:18
2.1.1
Compare
Choose a tag to compare

Build Status

This release provides aggressive improvements in static introspection via
phpstan/phpstan. No functional
changes, just removed possible bugs due to excessive parameter count
in method calls, as well as test type hint fixes.

Total issues resolved: 3

2.1.0

30 Nov 15:50
2.1.0
Compare
Choose a tag to compare