The ScalarAdapter transforms the input value from a string into it's scalar representation.
Ex. The string "true"
will be transformed into true
.
<?php
use Presta\BehatEvaluator\Adapter\ScalarAdapter;
$evaluate = new ScalarAdapter();
$value = $evaluate('123');
// $value is equal to 123