Ticket #268 (closed Task: fixed)
Object of class Foo could not be converted to int....
| Reported by: | dynom | Owned by: | Shadowhand |
|---|---|---|---|
| Priority: | major | Milestone: | 2.1 |
| Component: | Core | Version: | SVN HEAD |
| Keywords: | event hook object convert integer | Cc: |
Description
More information:
http://forum.kohanaphp.com/index.php/topic,369.0.html[[BR]]
http://bugs.php.net/bug.php?id=43545[[BR]]
Change loose checking to strict checking when working with objects. A working fix for system/core/Event.php:44 would be:
<?php // change if ( ! in_array($callback, self::$events[$name])) // to if ( ! in_array($callback, self::$events[$name], TRUE)) ?>
Change History
Note: See
TracTickets for help on using
tickets.
