Skip to content

Add scenario for generating proxies for union types in class properties #727

@Ocramius

Description

@Ocramius

Similar to #725 and #722, we need to expand our test assets with a class that contains union types for

  • methods
  • properties
  • parameters

For that, we should create a new class alike ClassWithMixedReferenceableTypedProperties:

<?php
declare(strict_types=1);
namespace ProxyManagerTestAsset;
/**
* Base test class to play around with mixed visibility properties with different type definitions
*
* @author Marco Pivetta <[email protected]>
* @license MIT
*/
class ClassWithMixedReferenceableTypedProperties
{
public static $publicStaticUnTypedProperty = 'publicStaticUnTypedProperty';
public static $publicStaticUnTypedPropertyWithoutDefaultValue;

Specifically, |null needs very careful evaluation, as nullable vs non-nullable union types have quite sensitive semantics around code generation and by-ref evaluation.

Once added, we should use this new class wherever ClassWithMixedReferenceableTypedProperties (and proceed fixing any potentially detected issues).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions