• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

liqueurdetoile / cakephp-orm-json / 3816986970

pending completion
3816986970

Pull #11

github

GitHub
Merge 5277f4d4a into 6364490a4
Pull Request #11: ci: Fix phinx update issue

898 of 1015 relevant lines covered (88.47%)

43.85 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/DatField/Compat3x.php
1
<?php
2
declare(strict_types=1);
3

4
namespace Lqdt\OrmJson\DatField;
5

6
class Compat3x
7
{
8
    /**
9
     * Enables Cakephp 3.x compatibility by aliasing some classes that have been renamed in CakePHP 4.x
10
     *
11
     * It must be called at bootstrap step
12
     *
13
     * @return void
14
     */
15
    public static function enable(): void
16
    {
17
        $classes = [
×
18
          '\Cake\Database\Expression\Comparison' => '\Cake\Database\Expression\ComparisonExpression',
×
19
          '\Cake\Database\Type' => '\Cake\Database\TypeFactory',
×
20
          '\Cake\Core\Exception\Exception' => '\Cake\Core\Exception\CakeException',
×
21
        ];
×
22

23
        foreach ($classes as $old => $new) {
×
24
            if (!class_exists($new)) {
×
25
                class_alias($old, $new);
×
26
            }
27
        }
28
    }
29
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc