Skip to content

Commit 6e3d856

Browse files
committed
Updated the README
1 parent 58df424 commit 6e3d856

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

README.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -125,20 +125,26 @@ should choose the fastest analyzer that supports the features you need.
125125
<td>--</td>
126126
</tr>
127127
<tr>
128-
<th>Performance</th>
129-
<th><em>Slow</em></th>
130-
<th><em>Fast</em></th>
128+
<td>Performance</td>
129+
<td><em>Slow</em></td>
130+
<td><em>Fast</em></td>
131131
</tr>
132132
</tbody>
133133
</table>
134134

135-
You can choose the analyzer you want to use when you instantiate the `Serializer`.
135+
You can choose the analyzer you want to use when you instantiate the
136+
`Serializer`. If you do not specify one, the `AstAnalyzer` is used by default,
137+
since it has the most capabilities.
136138

137139
```php
138140
use SuperClosure\Serializer;
139141
use SuperClosure\Analyzer\AstAnalyzer;
140142
use SuperClosure\Analyzer\TokenAnalyzer;
141143

144+
// Use the default analyzer.
145+
$serializer = new Serializer();
146+
147+
// Explicitly choose an analyzer.
142148
$serializer = new Serializer(new AstAnalyzer());
143149
// OR
144150
$serializer = new Serializer(new TokenAnalyzer());

0 commit comments

Comments
 (0)