Skip to content

Commit 7129a81

Browse files
authored
Add clarification on how to overcome some limitations (#739)
1 parent b3447e5 commit 7129a81

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/limitations.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ EOF;
9191

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

94+
To fix such cases, you will need to resort to [patchers].
95+
9496

9597
### Callables
9698

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

110+
To fix such cases, you will need to resort to [patchers].
111+
108112

109113
### String values
110114

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

134+
To fix such cases, you will need to resort to [patchers].
135+
130136

131137
### Native functions and constants shadowing
132138

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

189+
To fix such cases, you will need to resort to [patchers].
190+
183191

184192
### Composer Plugins
185193

@@ -226,7 +234,7 @@ transforming it to PSR-4, i.e. in the case above:
226234
}
227235
```
228236

229-
If this will work for the classes under `src/JsonMapper/`, it will not for `JsonMapper.php`.
237+
If this works for the classes under `src/JsonMapper/`, it will not for `JsonMapper.php`.
230238

231239

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

0 commit comments

Comments
 (0)