typesense / typesense/typesense-php

Parse error while creating connection

Open
#101 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
274
Forks
55
Avg merge
23h 17m
Merged PRs (30d)
1

Description

Getting Error:
PHP Parse error: syntax error, unexpected '|', expecting ';' or '{' in vendor\typesense\typesense-php\src\Lib\Configuration.php on line 228

PHP: 7.4.33
Typesense Library Version: v5.1.0

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Configuration.php at line 228 and reproduce connection creation using PHP 7.4.33 with Typesense Library v5.1.0. Determine what causes the parse error and verify that the client can be loaded and a connection created without that error.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.