Skip to content

Commit

Permalink
Add clarification on how to overcome some limitations (#739)
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry authored Nov 10, 2022
1 parent b3447e5 commit 7129a81
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/limitations.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ EOF;

It would be very hard to properly scope the relevant classes.

To fix such cases, you will need to resort to [patchers].


### Callables

Expand All @@ -105,6 +107,8 @@ The classes used there will not be scoped. It should not be impossible to add
support for it, but it is currently not supported. See
[#286](https://github.com/humbug/php-scoper/issues/286).

To fix such cases, you will need to resort to [patchers].


### String values

Expand All @@ -127,6 +131,8 @@ prefixed. But there is bound to have confusing cases. For example:
is no way to know if it is a class name or a random string except for a
handful of methods such as `class_alias`, `function_exists`, etc.

To fix such cases, you will need to resort to [patchers].


### Native functions and constants shadowing

Expand Down Expand Up @@ -180,6 +186,8 @@ to Composer loading files based on a hash which is generated from package name
and relative file path. For a workaround see
[#298](https://github.com/humbug/php-scoper/issues/298#issuecomment-525700081).

To fix such cases, you will need to resort to [patchers].


### Composer Plugins

Expand Down Expand Up @@ -226,7 +234,7 @@ transforming it to PSR-4, i.e. in the case above:
}
```

If this will work for the classes under `src/JsonMapper/`, it will not for `JsonMapper.php`.
If this works for the classes under `src/JsonMapper/`, it will not for `JsonMapper.php`.


### Files autoloading
Expand Down Expand Up @@ -265,3 +273,4 @@ is no way to alias one.
[box]: https://github.com/humbug/box
[exposed-symbols]: configuration.md#exposed-symbols
[#298]: https://github.com/humbug/php-scoper/issues/298
[patchers]: configuration.md#patchers

0 comments on commit 7129a81

Please sign in to comment.