Comments (2)
Can you tell me which version of Dice you are using?
Dice only has two places where it references $rule->instanceOf and in both cases it's an uppercase O on instanceOf.
Line 20:
if ($rule->instanceOf === null && $key !== '*' && is_subclass_of($name, $key) && $rule->inherit === true) return $rule;
and line 29
$class = new \ReflectionClass($rule->instanceOf ?: $component);
from dice.
I just sent a test message. Did you get it?
About this issue, you know, I think we just discovered a phpfmt horrible bug!! It's not Dice
though!! Sorry for disturbance.
Can you tell me, since when you can use the following syntax in PHP, which is really cool, I think:
namespace Dice {
class Dice {
private $rules = [];
private $cache = [];
private $instances = [];
}
}
from dice.
Related Issues (20)
- constructParams being applied in the wrong order HOT 1
- Error in documentation about json loading
- Wildcards in rules HOT 3
- Can't inherit global rules HOT 1
- Shared chain call HOT 8
- Call to undefined method ReflectionType::getName() HOT 3
- How to share a substitution HOT 1
- PHP 8 Deprecation HOT 11
- ..
- How to deal with inheritance HOT 2
- Having trouble creating PDO object HOT 3
- Performance: Opcache and Compiled container
- Support for union/intersection types? HOT 2
- Website section 4.1 missing.
- How to get a named instance from the container? HOT 1
- shareInstances are resolving but don't always propagate
- shared dependencies not working HOT 2
- PDO or Mysqli, named instances and shared instances error Undefined Array Key
- Shared dependencies by default? HOT 5
- Fatal error: Uncaught TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, function "is_mixed" not found. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dice.