Update example

[ci skip]
This commit is contained in:
Oliver Davies 2023-12-13 07:55:08 +00:00
parent f0804b265e
commit d5fba6493a
2 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
{
"require": {
"opdavies/gmail-filter-builder": "^1.1"
"opdavies/gmail-filter-builder": "3.x-dev"
},
"scripts": {
"generate": "generate-filters"

View file

@ -1,15 +1,15 @@
<?php
use Opdavies\GmailFilterBuilder\Filter;
require_once __DIR__ . '/vendor/autoload.php';
use function Opdavies\GmailFilterBuilder\filter;
return [
Filter::create()
filter()
->from('foo@example.com')
->labelAndArchive('Example'),
Filter::create()
filter()
->from('bar@example.com')
->important(),
];