Skip to content

Commit 86a3d6f

Browse files
bors[bot]dependabot[bot]brunoocasali
authored
Merge #225
225: Update meilisearch/meilisearch-php requirement from ^0.27.0 to ^1.0.0 r=brunoocasali a=dependabot[bot] Updates the requirements on [meilisearch/meilisearch-php](https://github.com/meilisearch/meilisearch-php) to permit the latest version. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/meilisearch/meilisearch-php/releases">meilisearch/meilisearch-php's releases</a>.</em></p> <blockquote> <h2>v1.0.0 🐘</h2> <p>This version makes this package compatible with Meilisearch v1.0.0 🎉 Check out the changelog of <a href="https://github.com/meilisearch/meilisearch/releases/tag/v1.0.0">Meilisearch v1.0.0</a> for more information on the changes.</p> <h3>💥 Breaking Changes</h3> <ul> <li><code>Endpoints/Indexes</code> date attributes <code>$createdAt</code> and <code>$updatedAt</code> are <code>DateTime</code> now instead of <code>string</code>. (<a href="https://github-redirect.dependabot.com/meilisearch/meilisearch-php/issues/457">#457</a>) <a href="https://github.com/brunoocasali"><code>`@​brunoocasali</code></a>` <ul> <li>Removed <code>getCreatedAtString</code> and <code>getUpdatedAtString</code> functions.</li> </ul> </li> <li>Add <code>canceledBy</code>/<code>setCanceledBy</code> in <code>TasksQuery</code> (<a href="https://github-redirect.dependabot.com/meilisearch/meilisearch-php/issues/454">#454</a>) <a href="https://github.com/brunoocasali"><code>`@​brunoocasali</code></a></li>` <li>Remove <code>next</code> attribute and <code>setNext</code> from <code>TasksQuery</code>. (<a href="https://github-redirect.dependabot.com/meilisearch/meilisearch-php/issues/454">#454</a>) <a href="https://github.com/brunoocasali"><code>`@​brunoocasali</code></a></li>` <li>Remove <code>next</code> attribute and <code>setNext</code> from <code>DeleteTasksQuery</code>. (<a href="https://github-redirect.dependabot.com/meilisearch/meilisearch-php/issues/454">#454</a>) <a href="https://github.com/brunoocasali"><code>`@​brunoocasali</code></a></li>` <li>Remove <code>next</code>, <code>canceledBy</code> attributes and <code>setNext</code>, <code>setCanceledBy</code> from <code>CancelTasksQuery</code>. (<a href="https://github-redirect.dependabot.com/meilisearch/meilisearch-php/issues/454">#454</a>) <a href="https://github.com/brunoocasali"><code>`@​brunoocasali</code></a></li>` <li>Remove <code>deleteAllIndexes</code>, since they don't really delete all the indexes but only the first page. (<a href="https://github-redirect.dependabot.com/meilisearch/meilisearch-php/issues/454">#454</a>) <a href="https://github.com/brunoocasali"><code>`@​brunoocasali</code></a></li>` <li>Remove <code>getAllRawIndexes</code> function. (<a href="https://github-redirect.dependabot.com/meilisearch/meilisearch-php/issues/454">#454</a>) <a href="https://github.com/brunoocasali"><code>`@​brunoocasali</code></a></li>` <li>Rename <code>getAllIndexes</code> to <code>getIndexes</code>. (<a href="https://github-redirect.dependabot.com/meilisearch/meilisearch-php/issues/454">#454</a>) <a href="https://github.com/brunoocasali"><code>`@​brunoocasali</code></a></li>` <li>Move all traits to <code>src/Endpoints/Delegates</code>. (<a href="https://github-redirect.dependabot.com/meilisearch/meilisearch-php/issues/455">#455</a>) <a href="https://github.com/brunoocasali"><code>`@​brunoocasali</code></a>` <ul> <li><code>Meilisearch\Delegates\HandlesIndex</code> to <code>Meilisearch\Endpoints\Delegates\HandlesIndex</code></li> <li><code>Meilisearch\Delegates\HandlesSystem</code> to <code>Meilisearch\Endpoints\Delegates\HandlesSystem</code></li> <li><code>Meilisearch\Delegates\TasksQueryTrait</code> to <code>Meilisearch\Endpoints\Delegates\TasksQueryTrait</code></li> </ul> </li> </ul> <h3>Enhancements</h3> <ul> <li>Add PHP 8.2 to CI (<a href="https://github-redirect.dependabot.com/meilisearch/meilisearch-php/issues/448">#448</a>) <a href="https://github.com/norkunas"><code>`@​norkunas</code></a></li>` </ul> <p>Thanks again to <a href="https://github.com/brunoocasali"><code>`@​brunoocasali</code></a>` and <a href="https://github.com/norkunas"><code>`@​norkunas</code></a>!` 🎉</p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/meilisearch/meilisearch-php/commit/11f12a2e36a6c616ffa5c6ed32272f8c870aaf69"><code>11f12a2</code></a> Merge <a href="https://github-redirect.dependabot.com/meilisearch/meilisearch-php/issues/458">#458</a></li> <li><a href="https://github.com/meilisearch/meilisearch-php/commit/6b63d9859b3a70178ede22887308f6c26c7f8429"><code>6b63d98</code></a> Update the version for the next release (v1.0.0)</li> <li><a href="https://github.com/meilisearch/meilisearch-php/commit/a581aa22af8304d066f3d263a0b7d859d488bfcf"><code>a581aa2</code></a> Merge <a href="https://github-redirect.dependabot.com/meilisearch/meilisearch-php/issues/436">#436</a></li> <li><a href="https://github.com/meilisearch/meilisearch-php/commit/cc96156382e6301f6c1551a4fc536d594e47b494"><code>cc96156</code></a> Merge <a href="https://github-redirect.dependabot.com/meilisearch/meilisearch-php/issues/455">#455</a></li> <li><a href="https://github.com/meilisearch/meilisearch-php/commit/68e5d10a5ae51799d87067ea9e4b183d163e9672"><code>68e5d10</code></a> Fix linting issue after composer:update</li> <li><a href="https://github.com/meilisearch/meilisearch-php/commit/f2d178f85e5ab4b4d9d49f074403f8a4dae6e754"><code>f2d178f</code></a> Merge <a href="https://github-redirect.dependabot.com/meilisearch/meilisearch-php/issues/454">#454</a></li> <li><a href="https://github.com/meilisearch/meilisearch-php/commit/c8bbe6a48279537260abfc9d6bf0043b51474d69"><code>c8bbe6a</code></a> Ignore phpstan withConsecutive deprecation for now</li> <li><a href="https://github.com/meilisearch/meilisearch-php/commit/218d27c041fdc39f8537eb4fce472778caedb733"><code>218d27c</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/meilisearch/meilisearch-php/issues/457">#457</a> from meilisearch/change-date-types</li> <li><a href="https://github.com/meilisearch/meilisearch-php/commit/233cb392f506386187a7046c2a322f53d0ce4e72"><code>233cb39</code></a> Merge branch 'main' into remove-raw-methods</li> <li><a href="https://github.com/meilisearch/meilisearch-php/commit/96f4924163a0ba152fed2e9bc8d2abb24f253ba5"><code>96f4924</code></a> Make createdAt and updatedAt DateTime types not string</li> <li>Additional commits viewable in <a href="https://github.com/meilisearch/meilisearch-php/compare/v0.27.0...v1.0.0">compare view</a></li> </ul> </details> <br /> You can trigger a rebase of this PR by commenting ``@dependabot` rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - ``@dependabot` rebase` will rebase this PR - ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it - ``@dependabot` merge` will merge this PR after your CI passes on it - ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it - ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging - ``@dependabot` reopen` will reopen this PR if it is closed - ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Bruno Casali <[email protected]>
2 parents 4efd710 + 710348c commit 86a3d6f

File tree

7 files changed

+26
-1
lines changed

7 files changed

+26
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"php": "^7.4|^8.0",
2222
"ext-json": "*",
2323
"doctrine/doctrine-bundle": "^2.4",
24-
"meilisearch/meilisearch-php": "^0.27.0",
24+
"meilisearch/meilisearch-php": "^1.0.0",
2525
"symfony/filesystem": "^4.4 || ^5.0 || ^6.0",
2626
"symfony/property-access": "^4.4 || ^5.0 || ^6.0",
2727
"symfony/serializer": "^4.4 || ^5.0 || ^6.0"

tests/Entity/Comment.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,25 @@
99

1010
/**
1111
* @ORM\Entity
12+
*
1213
* @ORM\Table(name="comments")
1314
*/
1415
class Comment
1516
{
1617
/**
1718
* @ORM\Id
19+
*
1820
* @ORM\GeneratedValue
21+
*
1922
* @ORM\Column(type="integer", nullable=true)
23+
*
2024
* @Groups({"searchable"})
2125
*/
2226
private ?int $id = null;
2327

2428
/**
2529
* @ORM\ManyToOne(targetEntity="Post", inversedBy="comments")
30+
*
2631
* @ORM\JoinColumn(nullable=false)
2732
*/
2833
private ?Post $post = null;
@@ -36,6 +41,7 @@ class Comment
3641
* max=10000,
3742
* maxMessage="comment.too_long"
3843
* )
44+
*
3945
* @Groups({"searchable"})
4046
*/
4147
private $content;
@@ -44,6 +50,7 @@ class Comment
4450
* @var \DateTime
4551
*
4652
* @ORM\Column(type="datetime")
53+
*
4754
* @Groups({"searchable"})
4855
*/
4956
private $publishedAt;

tests/Entity/Image.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ class Image
1313
{
1414
/**
1515
* @ORM\Id
16+
*
1617
* @ORM\GeneratedValue
18+
*
1719
* @ORM\Column(type="integer")
1820
*/
1921
private ?int $id;

tests/Entity/Link.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class Link implements NormalizableInterface
1616
{
1717
/**
1818
* @ORM\Id
19+
*
1920
* @ORM\Column(type="integer")
2021
*/
2122
private int $id;

tests/Entity/Page.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,30 @@
99

1010
/**
1111
* @ORM\Entity
12+
*
1213
* @ORM\Table(name="pages")
1314
*/
1415
class Page
1516
{
1617
/**
1718
* @ORM\Id
19+
*
1820
* @ORM\GeneratedValue(strategy="NONE")
21+
*
1922
* @ORM\Column(type="object")
2023
*/
2124
private $id = null;
2225

2326
/**
2427
* @ORM\Column(type="string", nullable=true)
28+
*
2529
* @Groups({"searchable"})
2630
*/
2731
private ?string $title = null;
2832

2933
/**
3034
* @ORM\Column(type="text", nullable=true)
35+
*
3136
* @Groups({"searchable"})
3237
*/
3338
private ?string $content = null;

tests/Entity/Post.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,41 @@
1111

1212
/**
1313
* @ORM\Entity
14+
*
1415
* @ORM\Table(name="posts")
1516
*/
1617
class Post
1718
{
1819
/**
1920
* @ORM\Id
21+
*
2022
* @ORM\GeneratedValue
23+
*
2124
* @ORM\Column(type="integer")
25+
*
2226
* @Groups({"searchable"})
2327
* ^ Note that Groups work on private properties
2428
*/
2529
private ?int $id = null;
2630

2731
/**
2832
* @ORM\Column(type="string", nullable=true)
33+
*
2934
* @Groups({"searchable"})
3035
* ^ Note that Groups work on private properties
3136
*/
3237
private ?string $title = null;
3338

3439
/**
3540
* @ORM\Column(type="text", nullable=true)
41+
*
3642
* @Groups({"searchable"})
3743
*/
3844
private ?string $content = null;
3945

4046
/**
4147
* @ORM\Column(type="datetime")
48+
*
4249
* @Groups({"searchable"})
4350
*/
4451
private ?\DateTime $publishedAt = null;
@@ -51,7 +58,9 @@ class Post
5158
* mappedBy="post",
5259
* orphanRemoval=true
5360
* )
61+
*
5462
* @ORM\OrderBy({"publishedAt": "DESC"})
63+
*
5564
* @Groups({"searchable"})
5665
*/
5766
private $comments;

tests/Entity/Tag.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class Tag implements NormalizableInterface
1717
{
1818
/**
1919
* @ORM\Id
20+
*
2021
* @ORM\Column(type="integer", nullable=true)
2122
*/
2223
private ?int $id;

0 commit comments

Comments
 (0)