Skip to content

Commit

Permalink
Leftover
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Mar 27, 2023
1 parent 98ca6fd commit 5985129
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -35,7 +35,7 @@ use SebastianBergmann\CsvParser\Parser;
use SebastianBergmann\CsvParser\Schema;
use SebastianBergmann\CsvParser\ColumnDefinition;
use SebastianBergmann\CsvParser\Type;
use SebastianBergmann\CsvParser\Callback;
use SebastianBergmann\CsvParser\ObjectMapper;

$schema = Schema::from(
ColumnDefinition::from(1, 'a', Type::integer()),
Expand Down Expand Up @@ -73,7 +73,7 @@ The following types are available:
* integer (`Type::integer()`; uses `(int)` type cast)
* float (`Type::float()`; uses `(float)` type cast)
* string (`Type::string()`)
* callback (`Type::object($mapper)`; `$mapper` is an object that implements the `SebastianBergmann\CsvParser\ObjectMapper` interface)
* object (`Type::object($mapper)`; `$mapper` is an object that implements the `SebastianBergmann\CsvParser\ObjectMapper` interface)

The `Parser::parse()` method requires three arguments:

Expand Down

0 comments on commit 5985129

Please sign in to comment.