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

plank / laravel-metable / 12172137688

05 Dec 2024 02:34AM UTC coverage: 99.535%. Remained the same
12172137688

push

github

web-flow
Merge pull request #111 from plank/php-84

Add PHP 8.4 support

642 of 645 relevant lines covered (99.53%)

191.03 hits per line

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

100.0
/src/DataType/FloatHandler.php
1
<?php
2

3
namespace Plank\Metable\DataType;
4

5
/**
6
 * Handle serialization of floats.
7
 */
8
class FloatHandler extends ScalarHandler
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    protected $type = 'double';
14

15
    /**
16
     * {@inheritdoc}
17
     */
18
    public function getDataType(): string
19
    {
20
        return 'float';
894✔
21
    }
22

23
    public function getNumericValue(mixed $value): null|int|float
24
    {
25
        return $value;
90✔
26
    }
27
}
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

© 2025 Coveralls, Inc